Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emailweixu committed Dec 4, 2023
1 parent 059a767 commit c9f84bc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions alf/environments/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ def create_environment(env_name=None,
"""

if env_name is None:
# Keep compatibility with the old default env_name
env_name = 'CartPole-v0'
if env_load_fn is None:
# Keep compatibility with the old default env_name
from alf.environments import suite_gym
env_load_fn = suite_gym.load

Expand Down
1 change: 0 additions & 1 deletion alf/examples/hybrid_rl/hybrid_sac_pendulum.gin
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

include 'sac_pendulum.gin'

# Example config for Hybrid RL training.
Expand Down
1 change: 1 addition & 0 deletions alf/examples/ppo_bullet_humanoid.gin
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import alf.environments.suite_gym
include 'ppo.gin'

# environment config
Expand Down
2 changes: 1 addition & 1 deletion alf/examples/sac_pendulum.gin
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import alf.environments.suite_gym
include 'sac.gin'

import alf.utils.math_ops
Expand Down
1 change: 1 addition & 0 deletions alf/examples/sarsa_ddpg_pendulum.gin
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import alf.environments.suite_gym
include 'sarsa_ddpg.gin'

# environment config
Expand Down
1 change: 1 addition & 0 deletions alf/examples/sarsa_sac_pendulum.gin
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import alf.environments.suite_gym
include 'sarsa_sac.gin'

# environment config
Expand Down

0 comments on commit c9f84bc

Please sign in to comment.