Remove dependence of wrapper on old gym

This commit is contained in:
Dominik Moritz Roth 2023-07-07 13:11:52 +02:00
parent 14a95eb5ca
commit 27f8335a0d

View File

@ -1,5 +1,8 @@
from gymnasium.spaces import Box, Dict, flatten, flatten_space from gymnasium.spaces import Box, Dict, flatten, flatten_space
from gym.spaces import Box as OldBox try:
from gym.spaces import Box as OldBox
except ImportError:
OldBox = None
import gymnasium as gym import gymnasium as gym
import numpy as np import numpy as np
import copy import copy