We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This should be not too difficult to add. Most unclear is how to extend pint best for this kind of conversion.
The idea is to add methods get the corresponding UCUM string from pint quantities and pint units:
>>> q = 5 * ureg("m/kg**3) >>> q <Quantity(5, 'kilogram / meter ** 3')> >>> q.to_ucum() 'kg.m-3' >>> u = q.units >>> u <Unit('kilogram / meter ** 3')> >>> u.to_ucum() 'kg.m-3'
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
This should be not too difficult to add. Most unclear is how to extend pint best for this kind of conversion.
The idea is to add methods get the corresponding UCUM string from pint quantities and pint units:
The text was updated successfully, but these errors were encountered: