Skip to content

Commit

Permalink
back to old method
Browse files Browse the repository at this point in the history
  • Loading branch information
jjshoots committed Feb 6, 2024
1 parent 5e2fa7c commit a3cc775
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/python/env/gymnasium.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,10 @@ def reset( # pyright: ignore[reportIncompatibleMethodOverride]
"""Resets environment and returns initial observation."""
# sets the seeds if it's specified for both ALE and frameskip np
# we only want to do this when commanded to so we don't reset all previous states, statistics, etc.
seeded_with = self.seed_game(seed) if seed else None
self.load_game()
seeded_with = None
if seed is not None:
seeded_with = self.seed_game(seed)
self.load_game()

self.ale.reset_game()

Expand Down

0 comments on commit a3cc775

Please sign in to comment.