We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48b403f commit e05e2c7Copy full SHA for e05e2c7
stable_baselines3/common/env_checker.py
@@ -32,7 +32,7 @@ def _check_non_zero_start(space: spaces.Space, space_type: str = "observation",
32
:param key: When the observation space comes from a Dict space, we pass the
33
corresponding key to have more precise warning messages. Defaults to "".
34
"""
35
- if isinstance(space, (spaces.Discrete, spaces.MultiDiscrete)) and not _starts_at_zero(space):
+ if isinstance(space, spaces.MultiDiscrete) and not _starts_at_zero(space):
36
maybe_key = f"(key='{key}')" if key else ""
37
warnings.warn(
38
f"{type(space).__name__} {space_type} space {maybe_key} with a non-zero start (start={space.start}) "
0 commit comments