Skip to content

Commit

Permalink
Change float32 to float64 in lunarlander
Browse files Browse the repository at this point in the history
  • Loading branch information
RedTachyon committed Jun 27, 2024
1 parent d5af014 commit 77625b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gymnasium/envs/box2d/lunar_lander.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77625b9

Please sign in to comment.