Skip to content

Commit

Permalink
Update room_env.py (#143)
Browse files Browse the repository at this point in the history
* Version bump to fix the PyPI package

* Update room_env.py

ValueError needs to be raised not asserted

---------

Co-authored-by: boris-il-forte <[email protected]>
  • Loading branch information
Katze2664 and boris-il-forte authored May 21, 2024
1 parent f0f3572 commit 5c3170e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/tutorials/code/room_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def step(self, action):
elif action == 3:
movement[0] += 0.1
else:
assert ValueError('The environment has only 4 actions')
raise ValueError('The environment has only 4 actions')

# Apply the movement with some noise:
self._state += movement + np.random.randn(2)*0.05
Expand Down

0 comments on commit 5c3170e

Please sign in to comment.