Skip to content

Commit

Permalink
Update minigrid_env.py with bug fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwassathish authored Feb 25, 2024
1 parent 0ca5144 commit 12d6533
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions minigrid/minigrid_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,11 @@ def get_pov_render(self, tile_size, agent_view_size=None):
Render an agent's POV observation for visualization
"""
grid, vis_mask = self.gen_obs_grid(agent_view_size)
'''
Bug Fix for https://github.com/Farama-Foundation/Minigrid/issues/419
- Added the agent_view_size field and used it if provided without
breaking existing code
'''

# Render the whole grid
if agent_view_size is None:
Expand Down

0 comments on commit 12d6533

Please sign in to comment.