Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed render error for numpy>2.0 #38

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading