Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dgriff777 authored Nov 1, 2018
1 parent 474f480 commit eb5c9b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ def step(self, action):

return max_frame, total_reward, done, info

def reset(self):
def reset(self, **kwargs):
"""Clear past frame buffer and init. to first obs. from inner env."""
self._obs_buffer.clear()
obs = self.env.reset()
obs = self.env.reset(**kwargs)
self._obs_buffer.append(obs)
return obs

0 comments on commit eb5c9b9

Please sign in to comment.