Skip to content

Commit

Permalink
Try calling ufunc directly
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhorton committed Aug 18, 2021
1 parent 196c7f7 commit eaeb2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unyt/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def _unit_operation_error_raise_or_warn(ufunc, u0, u1, *inputs):
):
warnings.warn(UnitOperationWarning(ufunc, u0, u1))
unwrapped_inputs = [i.value if isinstance(i, unyt_array) else i for i in inputs]
return ufunc.method(*unwrapped_inputs)
return ufunc(*unwrapped_inputs)
else:
raise UnitOperationError(ufunc, u0, u1)

Expand Down

0 comments on commit eaeb2d1

Please sign in to comment.