Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
akihironitta committed Dec 17, 2020
1 parent a01f7a7 commit b394889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pl_bolts/models/rl/common/gym_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

if _GYM_AVAILABLE:
from gym import Wrapper, ObservationWrapper
from gym import make as gym_make
import gym.spaces
import gym.make
else: # pragma: no-cover
warn_missing_pkg('gym')
Wrapper = object
Expand Down Expand Up @@ -204,7 +204,7 @@ def observation(self, obs):

def make_environment(env_name):
"""Convert environment with wrappers"""
env = gym.make(env_name)
env = gym_make(env_name)
env = MaxAndSkipEnv(env)
env = FireResetEnv(env)
env = ProcessFrame84(env)
Expand Down

0 comments on commit b394889

Please sign in to comment.