Skip to content

Commit

Permalink
updated class name for obstructedmaze_v1
Browse files Browse the repository at this point in the history
  • Loading branch information
BolunDai0216 committed Jan 15, 2024
1 parent 78a9dbc commit f694155
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
12 changes: 1 addition & 11 deletions docs/_scripts/gen_envs_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,9 @@ def generate_page(env, limit=-1, base_path=""):
env_type = key

page = generate_page({"id": key, "list": value})
# fp = open(
# os.path.join(
# os.path.dirname(__file__), "..", "environments", env_type, "list.html"
# ),
# "w",
# encoding="utf-8",
# )
fp = open(
os.path.join(
os.path.dirname(__file__),
"..",
"environments/minigrid",
f"{env_type}.md",
os.path.dirname(__file__), "..", "environments", env_type, "list.html"
),
"w",
encoding="utf-8",
Expand Down
8 changes: 4 additions & 4 deletions minigrid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def register_minigrid_envs():

register(
id="MiniGrid-ObstructedMaze-2Dlhb-v1",
entry_point="minigrid.envs.obstructedmaze_v1:ObstructedMaze_Full",
entry_point="minigrid.envs:ObstructedMaze_Full_V1",
kwargs={
"agent_room": (2, 1),
"key_in_box": True,
Expand All @@ -490,7 +490,7 @@ def register_minigrid_envs():

register(
id="MiniGrid-ObstructedMaze-1Q-v1",
entry_point="minigrid.envs.obstructedmaze_v1:ObstructedMaze_Full",
entry_point="minigrid.envs:ObstructedMaze_Full_V1",
kwargs={
"agent_room": (1, 1),
"key_in_box": True,
Expand All @@ -502,7 +502,7 @@ def register_minigrid_envs():

register(
id="MiniGrid-ObstructedMaze-2Q-v1",
entry_point="minigrid.envs.obstructedmaze_v1:ObstructedMaze_Full",
entry_point="minigrid.envs:ObstructedMaze_Full_V1",
kwargs={
"agent_room": (2, 1),
"key_in_box": True,
Expand All @@ -514,7 +514,7 @@ def register_minigrid_envs():

register(
id="MiniGrid-ObstructedMaze-Full-v1",
entry_point="minigrid.envs.obstructedmaze_v1:ObstructedMaze_Full",
entry_point="minigrid.envs:ObstructedMaze_Full_V1",
)

# Playground
Expand Down
1 change: 1 addition & 0 deletions minigrid/envs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
ObstructedMaze_Full,
ObstructedMazeEnv,
)
from minigrid.envs.obstructedmaze_v1 import ObstructedMaze_Full_V1
from minigrid.envs.playground import PlaygroundEnv
from minigrid.envs.putnear import PutNearEnv
from minigrid.envs.redbluedoors import RedBlueDoorEnv
Expand Down
2 changes: 1 addition & 1 deletion minigrid/envs/obstructedmaze_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from minigrid.envs.obstructedmaze import ObstructedMazeEnv


class ObstructedMaze_Full(ObstructedMazeEnv):
class ObstructedMaze_Full_V1(ObstructedMazeEnv):
"""
A blue ball is hidden in one of the 4 corners of a 3x3 maze. Doors
are locked, doors are obstructed by a ball and keys are hidden in
Expand Down

0 comments on commit f694155

Please sign in to comment.