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

this adresses #263

parent e39fdf79
No related branches found
No related tags found
No related merge requests found
...@@ -62,10 +62,11 @@ class EnvAgentStatic(object): ...@@ -62,10 +62,11 @@ class EnvAgentStatic(object):
malfunction_datas = [] malfunction_datas = []
for i in range(len(schedule.agent_positions)): for i in range(len(schedule.agent_positions)):
malfunction_datas.append({'malfunction': 0, malfunction_datas.append({'malfunction': 0,
'malfunction_rate': schedule.agent_malfunction_rates[i] if schedule.agent_malfunction_rates is not None else 0., 'malfunction_rate': schedule.agent_malfunction_rates[
i] if schedule.agent_malfunction_rates is not None else 0.,
'next_malfunction': 0, 'next_malfunction': 0,
'nr_malfunctions': 0, 'nr_malfunctions': 0,
'fixed':False}) 'fixed': False})
return list(starmap(EnvAgentStatic, zip(schedule.agent_positions, return list(starmap(EnvAgentStatic, zip(schedule.agent_positions,
schedule.agent_directions, schedule.agent_directions,
......
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