Skip to content

Commit cfdc10e

Browse files
committed
fix to be compatible with numpy > 1.16
1 parent 0c45de0 commit cfdc10e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def test_prediction_shapes_lowlevel(self, n_target_sets):
156156
):
157157
task = tl("2020-01-01", context_sampling, target_sampling)
158158

159-
n_targets = np.product(expected_obs_shape)
159+
n_targets = np.prod(expected_obs_shape)
160160

161161
# Tensors
162162
mean = model.mean(task)
@@ -192,7 +192,7 @@ def test_prediction_shapes_lowlevel(self, n_target_sets):
192192
)
193193

194194
if likelihood in ["cnp", "gnp"]:
195-
n_target_dims = np.product(tl.target_dims)
195+
n_target_dims = np.prod(tl.target_dims)
196196
assert_shape(
197197
model.covariance(task),
198198
(

0 commit comments

Comments
 (0)