Skip to content

Commit

Permalink
feat: refactoring 5
Browse files Browse the repository at this point in the history
  • Loading branch information
hpohekar committed Nov 6, 2024
1 parent 72b68bb commit 2e253cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansys/units/unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def _units_to_dim(
if unit_term in _base_units:
idx = _base_units[unit_term]["type"]

if idx in BaseDimensions.__members__:
if hasattr(BaseDimensions, idx):
if BaseDimensions[idx] in dimensions:
dimensions[BaseDimensions[idx]] += unit_term_exponent
else:
Expand Down

0 comments on commit 2e253cf

Please sign in to comment.