From 5c3170e32e8ad16d3600584300068f4cb6d077a7 Mon Sep 17 00:00:00 2001 From: Katze2664 <40237250+Katze2664@users.noreply.github.com> Date: Tue, 21 May 2024 18:38:55 +1000 Subject: [PATCH] Update room_env.py (#143) * Version bump to fix the PyPI package * Update room_env.py ValueError needs to be raised not asserted --------- Co-authored-by: boris-il-forte --- docs/source/tutorials/code/room_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/tutorials/code/room_env.py b/docs/source/tutorials/code/room_env.py index a4337bf9..2e8420b7 100644 --- a/docs/source/tutorials/code/room_env.py +++ b/docs/source/tutorials/code/room_env.py @@ -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