-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
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
Compact #224
Compact #224
Conversation
…ntuitively converts bytes to bits by default
…thod, derived units are retained
While I am definitely +1 on adding the This is not just a aesthetic choice. Is part of Pint design philosophy to avoid hardcoded values and making everything part of the registry. Additionally, this will also help when we try implement this compact for non SI units, but this are future plans when |
Sorry but only now this came again to my attention. It looks really good. I will merge it next week. |
thanks! |
to_compact
method to Quantity, as discussed in Support for normalization #151.infer_base_units
, a helper method used byto_compact
, toutils
.to_compact