(1e4*ureg.angstrom).to_compact()
returns 10 kiloangstrom
instead of 1 micrometer
#2055
doronbehar
started this conversation in
General
Replies: 1 comment 1 reply
-
You need to specify the base or convert to base units first: >>>(10000*ureg.angstrom).to_compact("m")
<Quantity(1.0, 'micrometer')>
>>> (10000*ureg.angstrom).to_base_units().to_compact()
<Quantity(1.0, 'micrometer')> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As the title says, here's a MWE:
Whereas:
Beta Was this translation helpful? Give feedback.
All reactions