Skip to content

Commit

Permalink
Merge pull request #240 from Farama-Foundation/fix-mazeant-import
Browse files Browse the repository at this point in the history
Fix MazeAnt-v5 environments having incorect entry points
  • Loading branch information
Kallinteris-Andreas authored Oct 11, 2024
2 parents 3e29629 + 61f2af3 commit 2d3e0df
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions gymnasium_robotics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Open{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.OPEN,
Expand All @@ -862,7 +862,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Open_Diverse_G{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.OPEN_DIVERSE_G,
Expand All @@ -874,7 +874,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Open_Diverse_GR{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.OPEN_DIVERSE_GR,
Expand All @@ -886,7 +886,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Medium{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.MEDIUM_MAZE,
Expand All @@ -898,7 +898,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Medium_Diverse_G{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.MEDIUM_MAZE_DIVERSE_G,
Expand All @@ -910,7 +910,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Medium_Diverse_GR{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.MEDIUM_MAZE_DIVERSE_GR,
Expand All @@ -922,7 +922,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Large{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.LARGE_MAZE,
Expand All @@ -934,7 +934,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Large_Diverse_G{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.LARGE_MAZE_DIVERSE_G,
Expand All @@ -946,7 +946,7 @@ def _merge(a, b):

register(
id=f"AntMaze_Large_Diverse_GR{suffix}-{version}",
entry_point="gymnasium_robotics.envs.maze.ant_maze:AntMazeEnv",
entry_point=f"gymnasium_robotics.envs.maze.ant_maze_{version}:AntMazeEnv",
kwargs=_merge(
{
"maze_map": maps.LARGE_MAZE_DIVERSE_GR,
Expand Down

0 comments on commit 2d3e0df

Please sign in to comment.