File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
mettagrid/python/src/mettagrid/simulator Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ def play(
4242 save_replay: Optional directory path to save replay. Directory will be created if it doesn't exist.
4343 Replay will be saved with a unique UUID-based filename.
4444 """
45+ logger .debug ("Starting play session" , extra = {"game_name" : game_name })
4546
4647 policy_env_info = PolicyEnvInterface .from_mg_cfg (env_cfg )
4748 policy = initialize_or_load_policy (policy_env_info , policy_spec , mg_cfg = env_cfg )
Original file line number Diff line number Diff line change @@ -69,9 +69,7 @@ def step(self) -> None:
6969
7070 def run_until_done (self ) -> None :
7171 """Run the rollout until completion or early exit."""
72- step_count = 0
7372 while not self .is_done ():
74- step_count += 1
7573 self .step ()
7674
7775 def is_done (self ) -> bool :
You can’t perform that action at this time.
0 commit comments