Skip to content

Commit

Permalink
fix: Fix wrapper handling in gymnasium v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
strakam committed Nov 23, 2024
1 parent 6504aa0 commit aaf4d43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generals/envs/gymnasium_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class ObservationAsImageWrapper(gym.ObservationWrapper):
def __init__(self, env):
super().__init__(env)
n_obs_keys = len(self.observation_space["observation"].items())
self.game = env.game
self.observation_space = gym.spaces.Dict(
{
"observation": gym.spaces.Box(
Expand Down

0 comments on commit aaf4d43

Please sign in to comment.