From 77625b927ab578f77cfb3aa9de0961bf8cdd6471 Mon Sep 17 00:00:00 2001 From: ariel Date: Fri, 28 Jun 2024 00:47:39 +0200 Subject: [PATCH] Change float32 to float64 in lunarlander --- gymnasium/envs/box2d/lunar_lander.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gymnasium/envs/box2d/lunar_lander.py b/gymnasium/envs/box2d/lunar_lander.py index 4aeff6ac9..976647b15 100644 --- a/gymnasium/envs/box2d/lunar_lander.py +++ b/gymnasium/envs/box2d/lunar_lander.py @@ -509,7 +509,7 @@ def step(self, action): ) if self.continuous: - action = np.clip(action, -1, +1).astype(np.float32) + action = np.clip(action, -1, +1).astype(np.float64) else: assert self.action_space.contains( action