Skip to content

Commit eaeb2d1

Browse files
committed
Try calling ufunc directly
1 parent 196c7f7 commit eaeb2d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unyt/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _unit_operation_error_raise_or_warn(ufunc, u0, u1, *inputs):
176176
):
177177
warnings.warn(UnitOperationWarning(ufunc, u0, u1))
178178
unwrapped_inputs = [i.value if isinstance(i, unyt_array) else i for i in inputs]
179-
return ufunc.method(*unwrapped_inputs)
179+
return ufunc(*unwrapped_inputs)
180180
else:
181181
raise UnitOperationError(ufunc, u0, u1)
182182

0 commit comments

Comments
 (0)