mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-30 17:57:30 +00:00
Merge pull request #25 from sherjilozair/obo_error
Fix warning being raised incorrectly
This commit is contained in:
@@ -77,7 +77,7 @@ class CartPoleEnv(gym.Env):
|
|||||||
|
|
||||||
def _reset(self):
|
def _reset(self):
|
||||||
self.state = np.random.uniform(low=-0.05, high=0.05, size=(4,))
|
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)
|
return np.array(self.state)
|
||||||
|
|
||||||
def _render(self, mode='human', close=False):
|
def _render(self, mode='human', close=False):
|
||||||
|
Reference in New Issue
Block a user