Skip to content

Commit

Permalink
Readd product
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Jul 15, 2023
1 parent 0b54d5b commit 55c9e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndcube/utils/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def propagate_rebin_uncertainties(uncertainty, data, mask, operation, operation_
if not propagation_operation:
if operation in {np.sum, np.nansum, np.mean, np.nanmean}:
propagation_operation = np.add
elif operation in {np.prod, np.nanprod}:
elif operation in {np.prod, np.nanprod, np.product}:

Check warning on line 255 in ndcube/utils/cube.py

View check run for this annotation

Codecov / codecov/patch

ndcube/utils/cube.py#L255

Added line #L255 was not covered by tests
propagation_operation = np.multiply
else:
raise ValueError("propagation_operation not recognized.")
Expand Down

0 comments on commit 55c9e5d

Please sign in to comment.