Skip to content

Commit

Permalink
Merge branch 'bug/compat/sympy_1_13' into tst/cp313
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jun 22, 2024
2 parents 8a61549 + b0ae0ab commit 4ffb976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unyt/unit_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def __pow__(self, p):
"Failed to cast it to a float."
)

if self.dimensions is logarithmic and p != 1.0:
if self.dimensions is logarithmic and p != 1:
raise InvalidUnitOperation(f"Tried to raise '{self}' to power '{p}'")

return Unit(
Expand Down

0 comments on commit 4ffb976

Please sign in to comment.