Skip to content

Commit

Permalink
Merge pull request mila-iqia#35 from mila-udem/maximecb-botgridfix
Browse files Browse the repository at this point in the history
Updated bot following MiniGrid change
  • Loading branch information
maximecb authored Jan 29, 2019
2 parents 58d3325 + f0d5038 commit 95411ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions babyai/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,11 @@ def __init__(self, mission):
# Mission to be solved
self.mission = mission

grid_size = mission.grid_size

# Grid containing what has been mapped out
self.grid = Grid(grid_size, grid_size)
self.grid = Grid(mission.width, mission.height)

# Visibility mask. True for explored/seen, false for unexplored.
self.vis_mask = np.zeros(shape=(grid_size, grid_size), dtype=np.bool)
self.vis_mask = np.zeros(shape=(mission.width, mission.height), dtype=np.bool)

# Stack of tasks/subtasks to complete (tuples)
self.stack = []
Expand Down

0 comments on commit 95411ff

Please sign in to comment.