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
if you run this,
a = 0 * UReg.kilogram / UReg.meter ** 3 / UReg.second print(a.to_preferred([UReg.hour]))
it gives error:
pint.errors.DimensionalityError: Cannot convert from 'kilogram / meter ** 3 / second' ([mass] / [length] ** 3 / [time]) to 'kilogram ** 1 / hour / meter ** 3' ([mass] ** 1 / [time] / [length] ** 3)
The text was updated successfully, but these errors were encountered:
you also need to provide a mass and distance unit
we could change it so the units in the original quantity are used when there aren't any units of a dimension
e: ah maybe I've misunderstood this as it looks like it tried to do what I suggested. is it beacuse it's a 0 magnitude quantity?
Sorry, something went wrong.
No branches or pull requests
if you run this,
a = 0 * UReg.kilogram / UReg.meter ** 3 / UReg.second
print(a.to_preferred([UReg.hour]))
it gives error:
pint.errors.DimensionalityError: Cannot convert from 'kilogram / meter ** 3 / second' ([mass] / [length] ** 3 / [time]) to 'kilogram ** 1 / hour / meter ** 3' ([mass] ** 1 / [time] / [length] ** 3)
The text was updated successfully, but these errors were encountered: