mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-17 20:39:12 +00:00
replace references to gymlibrary.ml with new .dev domain (#3053)
This commit is contained in:
@@ -256,7 +256,7 @@ def check_env(env: gym.Env, warn: bool = None, skip_render_check: bool = False):
|
|||||||
This is an invasive function that calls the environment's reset and step.
|
This is an invasive function that calls the environment's reset and step.
|
||||||
|
|
||||||
This is particularly useful when using a custom environment.
|
This is particularly useful when using a custom environment.
|
||||||
Please take a look at https://www.gymlibrary.ml/content/environment_creation/
|
Please take a look at https://www.gymlibrary.dev/content/environment_creation/
|
||||||
for more information about the API.
|
for more information about the API.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
@@ -269,7 +269,7 @@ def check_env(env: gym.Env, warn: bool = None, skip_render_check: bool = False):
|
|||||||
|
|
||||||
assert isinstance(
|
assert isinstance(
|
||||||
env, gym.Env
|
env, gym.Env
|
||||||
), "The environment must inherit from the gym.Env class. See https://www.gymlibrary.ml/content/environment_creation/ for more info."
|
), "The environment must inherit from the gym.Env class. See https://www.gymlibrary.dev/content/environment_creation/ for more info."
|
||||||
|
|
||||||
if env.unwrapped is not env:
|
if env.unwrapped is not env:
|
||||||
logger.warn(
|
logger.warn(
|
||||||
@@ -279,13 +279,13 @@ def check_env(env: gym.Env, warn: bool = None, skip_render_check: bool = False):
|
|||||||
# ============= Check the spaces (observation and action) ================
|
# ============= Check the spaces (observation and action) ================
|
||||||
assert hasattr(
|
assert hasattr(
|
||||||
env, "action_space"
|
env, "action_space"
|
||||||
), "The environment must specify an action space. See https://www.gymlibrary.ml/content/environment_creation/ for more info."
|
), "The environment must specify an action space. See https://www.gymlibrary.dev/content/environment_creation/ for more info."
|
||||||
check_action_space(env.action_space)
|
check_action_space(env.action_space)
|
||||||
check_space_limit(env.action_space, "action")
|
check_space_limit(env.action_space, "action")
|
||||||
|
|
||||||
assert hasattr(
|
assert hasattr(
|
||||||
env, "observation_space"
|
env, "observation_space"
|
||||||
), "The environment must specify an observation space. See https://www.gymlibrary.ml/content/environment_creation/ for more info."
|
), "The environment must specify an observation space. See https://www.gymlibrary.dev/content/environment_creation/ for more info."
|
||||||
check_observation_space(env.observation_space)
|
check_observation_space(env.observation_space)
|
||||||
check_space_limit(env.observation_space, "observation")
|
check_space_limit(env.observation_space, "observation")
|
||||||
|
|
||||||
|
@@ -19,11 +19,11 @@ class PassiveEnvChecker(gym.Wrapper):
|
|||||||
|
|
||||||
assert hasattr(
|
assert hasattr(
|
||||||
env, "action_space"
|
env, "action_space"
|
||||||
), "The environment must specify an action space. https://www.gymlibrary.ml/content/environment_creation/"
|
), "The environment must specify an action space. https://www.gymlibrary.dev/content/environment_creation/"
|
||||||
check_action_space(env.action_space)
|
check_action_space(env.action_space)
|
||||||
assert hasattr(
|
assert hasattr(
|
||||||
env, "observation_space"
|
env, "observation_space"
|
||||||
), "The environment must specify an observation space. https://www.gymlibrary.ml/content/environment_creation/"
|
), "The environment must specify an observation space. https://www.gymlibrary.dev/content/environment_creation/"
|
||||||
check_observation_space(env.observation_space)
|
check_observation_space(env.observation_space)
|
||||||
|
|
||||||
self.checked_reset = False
|
self.checked_reset = False
|
||||||
|
2
setup.py
2
setup.py
@@ -84,7 +84,7 @@ setup(
|
|||||||
},
|
},
|
||||||
python_requires=">=3.6",
|
python_requires=">=3.6",
|
||||||
tests_require=extras["testing"],
|
tests_require=extras["testing"],
|
||||||
url="https://www.gymlibrary.ml/",
|
url="https://www.gymlibrary.dev/",
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
@@ -244,15 +244,15 @@ def test_check_reset_options():
|
|||||||
[
|
[
|
||||||
[
|
[
|
||||||
"Error",
|
"Error",
|
||||||
"The environment must inherit from the gym.Env class. See https://www.gymlibrary.ml/content/environment_creation/ for more info.",
|
"The environment must inherit from the gym.Env class. See https://www.gymlibrary.dev/content/environment_creation/ for more info.",
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
GenericTestEnv(action_space=None),
|
GenericTestEnv(action_space=None),
|
||||||
"The environment must specify an action space. See https://www.gymlibrary.ml/content/environment_creation/ for more info.",
|
"The environment must specify an action space. See https://www.gymlibrary.dev/content/environment_creation/ for more info.",
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
GenericTestEnv(observation_space=None),
|
GenericTestEnv(observation_space=None),
|
||||||
"The environment must specify an observation space. See https://www.gymlibrary.ml/content/environment_creation/ for more info.",
|
"The environment must specify an observation space. See https://www.gymlibrary.dev/content/environment_creation/ for more info.",
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@@ -35,7 +35,7 @@ def test_passive_checker_wrapper_warnings(env):
|
|||||||
[
|
[
|
||||||
(
|
(
|
||||||
GenericTestEnv(action_space=None),
|
GenericTestEnv(action_space=None),
|
||||||
"The environment must specify an action space. https://www.gymlibrary.ml/content/environment_creation/",
|
"The environment must specify an action space. https://www.gymlibrary.dev/content/environment_creation/",
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
GenericTestEnv(action_space="error"),
|
GenericTestEnv(action_space="error"),
|
||||||
@@ -43,7 +43,7 @@ def test_passive_checker_wrapper_warnings(env):
|
|||||||
),
|
),
|
||||||
(
|
(
|
||||||
GenericTestEnv(observation_space=None),
|
GenericTestEnv(observation_space=None),
|
||||||
"The environment must specify an observation space. https://www.gymlibrary.ml/content/environment_creation/",
|
"The environment must specify an observation space. https://www.gymlibrary.dev/content/environment_creation/",
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
GenericTestEnv(observation_space="error"),
|
GenericTestEnv(observation_space="error"),
|
||||||
|
Reference in New Issue
Block a user