Skip to content

Commit

Permalink
feat: refactoring 3
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar committed Nov 5, 2024
1 parent 51e988d commit 54952f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansys/units/quantity.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def _relative_unit_check(self, __value, op: operator = operator.add) -> Quantity
return Quantity(value=new_value, units=new_units)

def __float__(self):
if self.is_dimensionless or ("ANGLE" and "SOLID_ANGLE" in self.dimensions):
if self.is_dimensionless:
return get_si_value(self)
raise InvalidFloatUsage()

Expand Down

0 comments on commit 54952f0

Please sign in to comment.