Skip to content

pint does not map bar/Pa to unitless. #1589

Answered by hgrecco
SullivanMuse asked this question in Q&A
Discussion options

You must be logged in to vote

It does if you use auto_reduce_dimensions=True, take a look at the docs.
or do it in an explicity way.

>>> (1.*ureg.bar/ureg.Pa).to_base_units()
<Quantity(100000.0, 'dimensionless')>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jules-ch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants