Where did delta_degC go, and will it ever return? #1602
-
I've been working with the development branch of
And there's a lot of commentary about the problems of temperature measurements, generally. Any advice on how to walk on this thin ice while I can? And whether I should plan to return to the shore on which I started, or hurry up to a better landing point? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Delta for >>> from pint import UnitRegistry
>>> ureg = UnitRegistry()
>>> ureg.Quantity(1, "delta_degree_Celsius")
<Quantity(1, 'delta_degree_Celsius')>
See line for aliases Line 200 in 9db2b29 You can define a new alias if you want, see the documentation for that : https://pint.readthedocs.io/en/stable/defining.html |
Beta Was this translation helpful? Give feedback.
-
Thanks, Jules! I'm feeding off openscm-units and perhaps it's failing to get all the goodness out of the newly faceted pint world:
|
Beta Was this translation helpful? Give feedback.
-
Just as a minor comment, remember that delta units are not defined in the text file, but automatically created for all non-multiplicative units. Regarding facets, my feeling is that now behavior is more compartmentalized and easier to hack. Once that #1595 gets reviewed and approved, the parser will be also stripped out and maybe the formatter. (with the new delegates addition). |
Beta Was this translation helpful? Give feedback.
-
Yes indeed, I noticed that in the source code. I'm very excited to see the new version of Pint when it comes out! |
Beta Was this translation helpful? Give feedback.
Delta for
degree_Celsius
is still there.deg_Celsius
is not defined see thedefault_en.txt
definition.See line for aliases
pint/pint/default_en.txt
Line 200 in 9db2b29
You can define a new alias if you want, see the documentation for that : https://pint.readthedocs.io/en/stable/defining.html