Open mhechthz opened 1 year ago
https://pint.readthedocs.io/en/latest/getting/tutorial.html#simplifying-units you can try using ureg.default_preferred_units which was added recently.
When the registry option for that I also noticed there were no auto to_base_units
or 'to_compact' options. There should be a bit of thoguht on how to go about the order to apply the different options and what order to apply them.
Would it be possible to get base units as default behaviour, to avoid setting it manually?
I have something like this (from metallurgy):
I get without
base_units()
a unitkpts* metric_ton
. This is right, but is slightly annoying. I would prefer a mode that always calculates the most basic available units.P.S.: I totally love this library :-)