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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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