Skip to content
Snippets Groups Projects
Commit bfa9a4e0 authored by Christian Eichenberger's avatar Christian Eichenberger :badminton:
Browse files

Merge branch...

Merge branch 'camel-casing-Trainrun-and-Waypoint-instead-of-TrainRun-and-WayPoint-for-readability' into 'master'

added print_action_plan_dict

See merge request !279
parents 514d66ef 17dea9e5
No related branches found
No related tags found
No related merge requests found
......@@ -117,7 +117,13 @@ class ControllerFromTrainruns():
return action_dict
def print_action_plan(self):
for agent_id, plan in enumerate(self.action_plan):
"""Pretty-prints `ActionPlanDict` of this `ControllerFromTrainruns` to stdout."""
self.__class__.print_action_plan_dict(self.action_plan)
@staticmethod
def print_action_plan_dict(action_plan: ActionPlanDict):
"""Pretty-prints `ActionPlanDict` to stdout."""
for agent_id, plan in enumerate(action_plan):
print("{}: ".format(agent_id))
for step in plan:
print(" {}".format(step))
......
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