-
Notifications
You must be signed in to change notification settings - Fork 86
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
save _horizon during setup #129
Conversation
robohive/envs/env_base.py
Outdated
@@ -136,6 +136,9 @@ def _setup(self, | |||
assert not done, "Check initialization. Simulation starts in a done state." | |||
self.observation_space = gym.spaces.Box(obs_range[0]*np.ones(observation.size), obs_range[1]*np.ones(observation.size), dtype=np.float32) | |||
|
|||
# we copy the horizon to avoid having gymnasium hijacking it later | |||
self._horizon = self.spec.max_episode_steps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.spec
is none at this point.
@vikashplus hopefully this should work, or at least a version of that with |
The checks are passing but better check on your end if it's all ok :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for helping with this.
LGTM
cc @vikashplus