Skip to content

Commit

Permalink
add depreation warning for gym_robotics (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigodelazcano authored Oct 3, 2022
1 parent a35b1c1 commit b5b651c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gym_robotics/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from warnings import warn

from gym.envs.registration import register

from gym_robotics.core import GoalEnv
Expand All @@ -8,6 +10,14 @@


def register_robotics_envs():

# gym_robotics package deprecated in favor of gymnasium_robotics
warn(
"The package name gym_robotics has been deprecated in favor of gymnasium_robotics. Please uninstall gym_robotics and install gymnasium_robotics with `pip install gymnasium_robotics`. Future releases will be maintained under the new package name gymnasium_robotics.",
DeprecationWarning,
stacklevel=2,
)

def _merge(a, b):
a.update(b)
return a
Expand Down

0 comments on commit b5b651c

Please sign in to comment.