Skip to content

Commit

Permalink
fixed replay suffix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lili-chen committed Jun 16, 2021
1 parent f38be86 commit 3a548c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atari/fixed_replay_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self, data_dir, replay_suffix, *args, **kwargs): # pylint: disable
self.add_count = np.array(0)
self._replay_suffix = replay_suffix
if not self._loaded_buffers:
if replay_suffix:
if replay_suffix is not None:
assert replay_suffix >= 0, 'Please pass a non-negative replay suffix'
self.load_single_buffer(replay_suffix)
else:
Expand Down

0 comments on commit 3a548c4

Please sign in to comment.