You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to list a subset of defined units based on their dimensionality?
I am creating an app where i would like to show users the possible units to choose from, when entering a value.
For this i would need to list the possible units for each dimensionality.
Is this something i can do with pint?
Example:
ureg=UnitRegistry()
dimensionality=ureg.get_dimensionality("[length]")
length_units=ureg.get_units(dimensionality=dimensionality) # <- I need something like this
The text was updated successfully, but these errors were encountered:
Is there a way to list a subset of defined units based on their dimensionality?
I am creating an app where i would like to show users the possible units to choose from, when entering a value.
For this i would need to list the possible units for each dimensionality.
Is this something i can do with pint?
Example:
The text was updated successfully, but these errors were encountered: