Skip to content

Commit

Permalink
fix: switch from np.product to np.prod
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-held committed Jul 4, 2023
1 parent 951912f commit f2a0a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyhf/tensor/numpy_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f2a0a0f

Please sign in to comment.