From 315e135ff06711b3ec0420ef03fda59e6dc8806d Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sun, 10 Sep 2023 09:12:15 +0200 Subject: [PATCH] Added message about discontinuation of fancy_gym.make --- fancy_gym/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fancy_gym/__init__.py b/fancy_gym/__init__.py index c1155fb..c406c5b 100644 --- a/fancy_gym/__init__.py +++ b/fancy_gym/__init__.py @@ -8,3 +8,6 @@ ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS = MOVEMENT_PRIMITIVE_ENVIRONMENTS_FOR_NS ALL_FANCY_MOVEMENT_PRIMITIVE_ENVIRONMENTS = MOVEMENT_PRIMITIVE_ENVIRONMENTS_FOR_NS['fancy'] 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.')