From f2a0a0f48632e5c2eeb55385034141a625e0148a Mon Sep 17 00:00:00 2001 From: Alexander Held Date: Tue, 4 Jul 2023 17:17:45 +0200 Subject: [PATCH] fix: switch from np.product to np.prod --- src/pyhf/tensor/numpy_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyhf/tensor/numpy_backend.py b/src/pyhf/tensor/numpy_backend.py index b1bdcf7880..bb96393937 100644 --- a/src/pyhf/tensor/numpy_backend.py +++ b/src/pyhf/tensor/numpy_backend.py @@ -254,7 +254,7 @@ def sum(self, tensor_in: Tensor[T], axis: int | None = None) -> ArrayLike: return np.sum(tensor_in, axis=axis) def product(self, tensor_in: Tensor[T], axis: Shape | None = None) -> ArrayLike: - return np.product(tensor_in, axis=axis) # type: ignore[arg-type] + return np.prod(tensor_in, axis=axis) # type: ignore[arg-type] def abs(self, tensor: Tensor[T]) -> ArrayLike: return np.abs(tensor)