From cfdc10ec4970ccd5d71d31d49644d339162899b9 Mon Sep 17 00:00:00 2001 From: davidwilby <24752124+davidwilby@users.noreply.github.com> Date: Fri, 13 Dec 2024 16:36:52 +0000 Subject: [PATCH] fix to be compatible with numpy > 1.16 --- tests/test_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_model.py b/tests/test_model.py index 3e1d1343..3a221207 100644 --- a/tests/test_model.py +++ b/tests/test_model.py @@ -156,7 +156,7 @@ def test_prediction_shapes_lowlevel(self, n_target_sets): ): task = tl("2020-01-01", context_sampling, target_sampling) - n_targets = np.product(expected_obs_shape) + n_targets = np.prod(expected_obs_shape) # Tensors mean = model.mean(task) @@ -192,7 +192,7 @@ def test_prediction_shapes_lowlevel(self, n_target_sets): ) if likelihood in ["cnp", "gnp"]: - n_target_dims = np.product(tl.target_dims) + n_target_dims = np.prod(tl.target_dims) assert_shape( model.covariance(task), (