Skip to content

Commit

Permalink
Add error case
Browse files Browse the repository at this point in the history
  • Loading branch information
ffelten committed Jan 15, 2024
1 parent e8f9bb1 commit a025f65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mo_gymnasium/envs/deep_sea_treasure/deep_sea_treasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ def __init__(self, render_mode: Optional[str] = None, dst_map=DEFAULT_MAP, float
self.map_name = "convex"
elif np.all(dst_map == CONCAVE_MAP):
self.map_name = "concave"
else:
raise ValueError("Invalid map")
elif np.all(dst_map == MIRRORED_MAP):
self.map_name = "mirrored"
else:
Expand Down

0 comments on commit a025f65

Please sign in to comment.