Skip to content

Commit

Permalink
fix to be compatible with numpy > 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwilby committed Dec 13, 2024
1 parent 0c45de0 commit cfdc10e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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),
(
Expand Down

0 comments on commit cfdc10e

Please sign in to comment.