Skip to content

Commit

Permalink
Fix issue #232 (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigodelazcano authored Sep 11, 2022
1 parent 8dcb8e0 commit 5142806
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ use the `RGBImgPartialObsWrapper`. You can use it as follows:
import gym
from gym_minigrid.wrappers import RGBImgPartialObsWrapper, ImgObsWrapper

env = gym.make('MiniGrid-Empty-8x8-v0', new_step_api=True)
env = gym.make('MiniGrid-Empty-8x8-v0')
env = RGBImgPartialObsWrapper(env) # Get pixel observations
env = ImgObsWrapper(env) # Get rid of the 'mission' field
obs = env.reset() # This now produces an RGB tensor only
obs, _ = env.reset() # This now produces an RGB tensor only
```

## Design
Expand Down
3 changes: 1 addition & 2 deletions gym_minigrid/manual_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def redraw(window, img):


def reset(env, window, seed=None):
_ = env.reset(seed=seed)
env.reset(seed=seed)

if hasattr(env, "mission"):
print("Mission: %s" % env.mission)
Expand Down Expand Up @@ -101,7 +101,6 @@ def key_handler(env, window, event):

env = gym.make(
args.env,
new_step_api=True,
tile_size=args.tile_size,
)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
version="1.2.0",
version="1.2.1",
keywords="memory, environment, agent, rl, gym",
url="https://github.com/Farama-Foundation/gym-minigrid",
description="Minimalistic gridworld reinforcement learning environments",
Expand Down

0 comments on commit 5142806

Please sign in to comment.