From 1a4f54ed23101fbcf48bfe2022a5ff74c37c5b8f Mon Sep 17 00:00:00 2001 From: boris-il-forte Date: Mon, 30 Oct 2023 15:34:51 +0100 Subject: [PATCH 1/2] Version bump to fix the PyPI package --- mushroom_rl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mushroom_rl/__init__.py b/mushroom_rl/__init__.py index 52af183e..c9f359bd 100644 --- a/mushroom_rl/__init__.py +++ b/mushroom_rl/__init__.py @@ -1 +1 @@ -__version__ = '1.10.0' +__version__ = '1.10.0-2' From 1d0cad1ecbf7ff36b1589b69c4a29c1a5c19e61b Mon Sep 17 00:00:00 2001 From: Katze2664 <40237250+Katze2664@users.noreply.github.com> Date: Fri, 17 May 2024 13:22:16 +1000 Subject: [PATCH 2/2] Update room_env.py ValueError needs to be raised not asserted --- 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 8aea07b7..a446b09a 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