Merge pull request #25 from sherjilozair/obo_error

Fix warning being raised incorrectly
This commit is contained in:
Greg Brockman
2016-04-29 06:56:51 -07:00

View File

@@ -77,7 +77,7 @@ class CartPoleEnv(gym.Env):
def _reset(self):
self.state = np.random.uniform(low=-0.05, high=0.05, size=(4,))
self.steps_beyond_done = 0
self.steps_beyond_done = None
return np.array(self.state)
def _render(self, mode='human', close=False):