Skip to content

Commit

Permalink
copy_paste error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BluemlJ committed Nov 27, 2024
1 parent 1a2af98 commit 6288bbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/1_games/test_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
GAMES = [f"ALE/{g}-v5" for g in OBJv2_SUPPORTED]

MODES = ["ram", "vision"]
OBS_MODES = ["ori", "dqn"]
OBS_MODES = ["obj"]
FRAMESKIPS = [1, 4]
STATE_NUMS = ["state_1", "state_2", "state_3"]
STATE_NUMS = [""]

PICKLE_PATH = "pickle_files"

Expand All @@ -23,6 +23,8 @@ def load_pickle_state(env, game_name, state_nr):
"""
Load the state from the pickle file for the given game.
"""
if state_nr == "":
return
pickle_file_path = os.path.join(PICKLE_PATH, game_name, f"{state_nr}.pkl")
if os.path.exists(pickle_file_path):
with open(pickle_file_path, "rb") as f:
Expand Down

0 comments on commit 6288bbb

Please sign in to comment.