From 795508bd358c801a4a0753fb42974fea70576ab3 Mon Sep 17 00:00:00 2001 From: ariel Date: Tue, 5 Dec 2023 01:53:58 +0100 Subject: [PATCH] Rename info entry --- gymnasium/envs/box2d/car_racing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gymnasium/envs/box2d/car_racing.py b/gymnasium/envs/box2d/car_racing.py index d89022755..0a5900e86 100644 --- a/gymnasium/envs/box2d/car_racing.py +++ b/gymnasium/envs/box2d/car_racing.py @@ -567,11 +567,11 @@ def step(self, action: Union[np.ndarray, int]): if self.tile_visited_count == len(self.track) or self.new_lap: # Termination due to finishing lap terminated = True - info["finished"] = True + info["lap_finished"] = True x, y = self.car.hull.position if abs(x) > PLAYFIELD or abs(y) > PLAYFIELD: terminated = True - info["finished"] = False + info["lap_finished"] = False step_reward = -100 if self.render_mode == "human":