Skip to content

Commit

Permalink
fixed rgb render for numpy>2.0 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Howuhh authored Oct 11, 2024
1 parent 6a775f3 commit c39870b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xminigrid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from .registration import make, register, registered_environments

# TODO: add __all__
__version__ = "0.9.0"
__version__ = "0.9.1"

# ---------- XLand-MiniGrid environments ----------

Expand Down
2 changes: 1 addition & 1 deletion src/xminigrid/rendering/rgb_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def render(
height_px = grid.shape[0] * int(tile_size)
width_px = grid.shape[1] * int(tile_size)

img = np.full((height_px, width_px, 3), dtype=np.uint8, fill_value=-1)
img = np.full((height_px, width_px, 3), dtype=np.uint8, fill_value=255)

# compute agent fov highlighting
highlight_mask = get_highlight_mask(grid, agent, int(view_size))
Expand Down

0 comments on commit c39870b

Please sign in to comment.