Skip to content

Commit

Permalink
Enable flattening mixed discrete/continuous observation spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
smorad committed Aug 1, 2023
1 parent 041a9c6 commit 24f42fb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion popgym/wrappers/flatten.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def __init__(
self.env.action_space
)
if flatten_observation:
self.continuous(self.env.observation_space)
self.need_flatten_obs = isinstance(
self.env.observation_space, gym.spaces.Tuple
) or isinstance(self.env.observation_space, gym.spaces.Dict)
Expand Down

0 comments on commit 24f42fb

Please sign in to comment.