Skip to content
Snippets Groups Projects
Commit e49ec961 authored by Erik Nygren's avatar Erik Nygren :bullettrain_front:
Browse files

resetting fixed function

parent 241b5af8
No related branches found
No related tags found
No related merge requests found
......@@ -422,6 +422,7 @@ class RailEnv(Environment):
if agent.malfunction_data['malfunction'] < 1 and agent.malfunction_data['next_malfunction'] < 1:
# Increase number of malfunctions
agent.malfunction_data['nr_malfunctions'] += 1
agent.malfunction_data['fixed'] = False
# Next malfunction in number of stops
next_breakdown = int(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment