Skip to content

Commit a804d3c

Browse files
Dopamine Teampsc-g
authored andcommitted
Use assertIn instead of assertContainsSubsequence for substring checks.
PiperOrigin-RevId: 690716793
1 parent 9f616b9 commit a804d3c

40 files changed

+5
-5
lines changed

dopamine/discrete_domains/atari_lib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class has two main functions: `.__init__` and `.call`. When we create our
4141

4242
from absl import logging
4343

44-
from ale_py import registration
44+
import ale_py
4545
from baselines.common import atari_wrappers
4646
import cv2
4747
import gin
@@ -108,8 +108,8 @@ def create_atari_environment(
108108
full_game_name = f'{game_name}NoFrameskip-{game_version}'
109109
env = legacy_gym.make(full_game_name)
110110
else:
111-
registration.register_v5_envs()
112-
registration.register_v5_envs()
111+
gym.register_envs(ale_py)
112+
gym.register_envs(ale_py)
113113
full_game_name = f'ALE/{game_name}-v5'
114114
repeat_action_probability = 0.25 if sticky_actions else 0.0
115115
continuous = continuous_action_threshold is not None
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)