Skip to content

Commit

Permalink
precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
BartekCupial committed Oct 31, 2024
1 parent ad8a66b commit cf73dd1
Show file tree
Hide file tree
Showing 5 changed files with 427 additions and 277 deletions.
4 changes: 2 additions & 2 deletions minigrid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,12 +1136,12 @@ def register_minigrid_envs():

# BabyAI - Language based levels - Level_MixedTrainLocal and Level_MixedTestLocal
# ----------------------------------------

register(
id="BabyAI-MixedTrainLocal-v0",
entry_point="minigrid.envs.babyai:Level_MixedTrainLocal",
)

register(
id="BabyAI-MixedTestLocal-v0",
entry_point="minigrid.envs.babyai:Level_MixedTestLocal",
Expand Down
8 changes: 4 additions & 4 deletions minigrid/envs/babyai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
GoToRedBlueBall,
GoToSeq,
)
from minigrid.envs.babyai.mixed_seq_levels import (
Level_MixedTestLocal,
Level_MixedTrainLocal,
)
from minigrid.envs.babyai.open import (
Open,
OpenDoor,
Expand Down Expand Up @@ -51,7 +55,3 @@
UnlockPickup,
UnlockToUnlock,
)
from minigrid.envs.babyai.mixed_seq_levels import (
Level_MixedTrainLocal,
Level_MixedTestLocal,
)
13 changes: 2 additions & 11 deletions minigrid/envs/babyai/core/levelgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,9 @@ def add_locked_room(self, color=None):
continue

if color is not None:
door, _ = self.add_door(
i, j,
door_idx,
color=color,
locked=True
)
door, _ = self.add_door(i, j, door_idx, color=color, locked=True)
else:
door, _ = self.add_door(
i, j,
door_idx,
locked=True
)
door, _ = self.add_door(i, j, door_idx, locked=True)

# Done adding locked room
break
Expand Down
Loading

0 comments on commit cf73dd1

Please sign in to comment.