mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-05-22 22:10:16 +00:00
Removed redundant double-check of nested Dict (#908)
* Removed redundant double-check of nested Dict observation space from BaseAlgorithm * Update changelog Co-authored-by: tibigg <tg4018@ic.ac.uk>
This commit is contained in:
parent
0fadc94df3
commit
2fcf8f91c1
2 changed files with 2 additions and 6 deletions
|
|
@ -33,6 +33,7 @@ Deprecations:
|
|||
Others:
|
||||
^^^^^^^
|
||||
- Upgraded to Python 3.7+ syntax using ``pyupgrade``
|
||||
- Removed redundant double-check for nested observations from ``BaseAlgorithm._wrap_env`` (@TibiGG)
|
||||
|
||||
Documentation:
|
||||
^^^^^^^^^^^^^^
|
||||
|
|
@ -970,4 +971,4 @@ And all the contributors:
|
|||
@wkirgsn @AechPro @CUN-bjy @batu @IljaAvadiev @timokau @kachayev @cleversonahum
|
||||
@eleurent @ac-93 @cove9988 @theDebugger811 @hsuehch @Demetrio92 @thomasgubler @IperGiove @ScheiklP
|
||||
@simoninithomas @armandpl @manuel-delverme @Gautam-J @gianlucadecola @buoyancy99 @caburu @xy9485
|
||||
@Gregwar @ycheng517 @quantitative-technologies @bcollazo @git-thor
|
||||
@Gregwar @ycheng517 @quantitative-technologies @bcollazo @git-thor @TibiGG
|
||||
|
|
|
|||
|
|
@ -209,11 +209,6 @@ class BaseAlgorithm(ABC):
|
|||
# Make sure that dict-spaces are not nested (not supported)
|
||||
check_for_nested_spaces(env.observation_space)
|
||||
|
||||
if isinstance(env.observation_space, gym.spaces.Dict):
|
||||
for space in env.observation_space.spaces.values():
|
||||
if isinstance(space, gym.spaces.Dict):
|
||||
raise ValueError("Nested observation spaces are not supported (Dict spaces inside Dict space).")
|
||||
|
||||
if not is_vecenv_wrapped(env, VecTransposeImage):
|
||||
wrap_with_vectranspose = False
|
||||
if isinstance(env.observation_space, gym.spaces.Dict):
|
||||
|
|
|
|||
Loading…
Reference in a new issue