Skip to content

Commit

Permalink
PercentUnit.PERCENT convertible unit
Browse files Browse the repository at this point in the history
  • Loading branch information
softwareengineerprogrammer committed Oct 11, 2024
1 parent 707ef39 commit 1aeb71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geophires_x/Units.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_unit_registry():


def convertible_unit(u:str) -> str:
if u == Units.PERCENT or u == Units.PERCENT.value:
if u == Units.PERCENT or u == PercentUnit.PERCENT or u == Units.PERCENT.value:
return 'percent'

return u
Expand Down

0 comments on commit 1aeb71d

Please sign in to comment.