Skip to content

Fix: fix the gym box shape when using a grid based observation#34

Open
WiemKhlifi wants to merge 1 commit intosemitable:masterfrom
WiemKhlifi:fix/fix_obs_space_shape
Open

Fix: fix the gym box shape when using a grid based observation#34
WiemKhlifi wants to merge 1 commit intosemitable:masterfrom
WiemKhlifi:fix/fix_obs_space_shape

Conversation

@WiemKhlifi
Copy link

What?

Fixed an issue where the shape specification in gym.spaces.Box was incorrect when grid_observation is set to True, leading to shape mismatches and runtime errors.
This fix works fine if we set the same attribute to False. Some additional minor modifications were included but can be reverted if not agreed on 😸

How?

Modified the initialisation shape parameter of gym.spaces.Box within the environment setup to reflect the correct grid shape.

@@ -0,0 +1,19 @@
from environment import ForagingEnv
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Delete this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant