Skip to content

Commit

Permalink
override gym env constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
dementrock committed Nov 12, 2016
1 parent 86fc7bb commit 4fd25fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rllab/envs/gym_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def __call__(self, count):


class FixedIntervalVideoSchedule(object):

def __init__(self, interval):
self.interval = interval

Expand Down Expand Up @@ -89,6 +88,9 @@ def horizon(self):
return self._horizon

def reset(self):
if hasattr(self.env, 'monitor'):
if hasattr(self.env.monitor, 'stats_recorder'):
self.env.monitor.stats_recorder.done = True
return self.env.reset()

def step(self, action):
Expand Down

0 comments on commit 4fd25fe

Please sign in to comment.