Skip to content

Commit c39870b

Browse files
authored
fixed rgb render for numpy>2.0 (#38)
1 parent 6a775f3 commit c39870b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/xminigrid/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from .registration import make, register, registered_environments
33

44
# TODO: add __all__
5-
__version__ = "0.9.0"
5+
__version__ = "0.9.1"
66

77
# ---------- XLand-MiniGrid environments ----------
88

src/xminigrid/rendering/rgb_render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def render(
237237
height_px = grid.shape[0] * int(tile_size)
238238
width_px = grid.shape[1] * int(tile_size)
239239

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

242242
# compute agent fov highlighting
243243
highlight_mask = get_highlight_mask(grid, agent, int(view_size))

0 commit comments

Comments
 (0)