From d8315c8d97c10f3719e5638803590057bafa5a66 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Tue, 19 Sep 2023 17:00:49 +0200 Subject: [PATCH] Fixed typo in NS --- fancy_gym/__init__.py | 1 + fancy_gym/envs/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fancy_gym/__init__.py b/fancy_gym/__init__.py index c406c5b..c646aef 100644 --- a/fancy_gym/__init__.py +++ b/fancy_gym/__init__.py @@ -9,5 +9,6 @@ ALL_FANCY_MOVEMENT_PRIMITIVE_ENVIRONMENTS = MOVEMENT_PRIMITIVE_ENVIRONMENTS_FOR_ ALL_METAWORLD_MOVEMENT_PRIMITIVE_ENVIRONMENTS = MOVEMENT_PRIMITIVE_ENVIRONMENTS_FOR_NS['metaworld'] ALL_GYM_MOVEMENT_PRIMITIVE_ENVIRONMENTS = MOVEMENT_PRIMITIVE_ENVIRONMENTS_FOR_NS['gym'] + def make(*args, **kwargs): raise Exception('As part of the refactor of Fancy Gym and upgrade to gymnasium the use of fancy_gym.make has been discontinued. Regular gym.make should be used instead. For more details check out the github README. If your codebase was build for older versions of Fancy Gym and relies on the old behavior and dependency versions, please check out the legacy branch.') diff --git a/fancy_gym/envs/__init__.py b/fancy_gym/envs/__init__.py index 10ed0b0..d416dbb 100644 --- a/fancy_gym/envs/__init__.py +++ b/fancy_gym/envs/__init__.py @@ -213,7 +213,7 @@ for reward_type in ["Dense", "TemporalSparse", "TemporalSpatialSparse"]: max_episode_steps=MAX_EPISODE_STEPS_BOX_PUSHING, ) register( - id='BoxPushingRandomInit{}-v0'.format(reward_type), + id='fancy/BoxPushingRandomInit{}-v0'.format(reward_type), entry_point='fancy_gym.envs.mujoco:BoxPushing{}'.format(reward_type), max_episode_steps=MAX_EPISODE_STEPS_BOX_PUSHING, kwargs={"random_init": True}