Skip to content

Commit

Permalink
BUGFIX: Making registery fetch work for all versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vikashplus committed Jan 12, 2024
1 parent bc994ef commit 750f6c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion robohive/envs/env_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from sys import platform
from robohive.physics.sim_scene import SimScene
import robohive.utils.import_utils as import_utils
from robohive.envs.env_variants import gym_registry_specs

# TODO
# remove rwd_mode
Expand Down Expand Up @@ -532,7 +533,9 @@ def id(self):

@property
def horizon(self):
return gym.registry[self.spec.id].max_episode_steps # paths could have early termination before horizon
# return self.spec.max_episode_steps # paths could have early termination before horizon
return gym_registry_specs()[self.spec.id].max_episode_steps


def get_env_state(self):
"""
Expand Down

0 comments on commit 750f6c3

Please sign in to comment.