Skip to content

Where did delta_degC go, and will it ever return? #1602

Answered by jules-ch
MichaelTiemannOSC asked this question in Q&A
Discussion options

You must be logged in to vote

Delta for degree_Celsius is still there.

>>> from pint import UnitRegistry
>>> ureg = UnitRegistry()
>>> ureg.Quantity(1, "delta_degree_Celsius")
<Quantity(1, 'delta_degree_Celsius')>

deg_Celsius is not defined see the default_en.txt definition.

See line for aliases

degree_Celsius = kelvin; offset: 273.15 = °C = celsius = degC = degreeC

You can define a new alias if you want, see the documentation for that : https://pint.readthedocs.io/en/stable/defining.html

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MichaelTiemannOSC
Comment options

Answer selected by MichaelTiemannOSC
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants