From 9a209be089a17365a3b404344f84c4ec3d9d3c72 Mon Sep 17 00:00:00 2001 From: Kamel Gazzaz <60620606+kamelCased@users.noreply.github.com> Date: Thu, 22 Feb 2024 14:41:52 -0800 Subject: [PATCH] Fix np.bool in /arm/arm/launch_utils.py Replace deprecated np.bool with bool in line 47 of /arm/arm/launch_utils.py 47: extra_replay_elements=[ReplayElement('demo', (), np.bool)] -> extra_replay_elements=[ReplayElement('demo', (), bool)] --- arm/arm/launch_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm/arm/launch_utils.py b/arm/arm/launch_utils.py index cf947ca..03eddfc 100644 --- a/arm/arm/launch_utils.py +++ b/arm/arm/launch_utils.py @@ -45,7 +45,7 @@ def create_replay(batch_size: int, timesteps: int, prioritisation: bool, reward_dtype=np.float32, update_horizon=1, observation_elements=observation_elements, - extra_replay_elements=[ReplayElement('demo', (), np.bool)] + extra_replay_elements=[ReplayElement('demo', (), bool)] ) return replay_buffer