Commit a2d56364 authored by nimishsantosh107's avatar nimishsantosh107
Browse files

rc2 evaluator fixes - 2

parent 6e6158a6
Pipeline #8545 canceled with stages
......@@ -867,7 +867,7 @@ class FlatlandRemoteEvaluationService:
))
# We count the number of agents that malfunctioned by checking how many have 1 more steps left before recovery
num_malfunctioning = sum(agent.malfunction_data['malfunction'] == 1 for agent in self.env.agents)
num_malfunctioning = sum(agent.malfunction_handler._malfunction_down_counter == 1 for agent in self.env.agents)
if self.verbose and num_malfunctioning > 0:
print("Step {}: {} agents have malfunctioned and will recover next step".format(self.current_step, num_malfunctioning))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment