-
Notifications
You must be signed in to change notification settings - Fork 474
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
Pretty printing of degrees #546
Comments
That indeed would be nice. Typically this is done by replacing the first alias (the string after the second equal) for the desired definition in the definition file. But this is not entirely correct. The issue is that we do not distinguish now between a short form of a unit (which is stored in We would need: I can assist if somebody wants to push this forward. |
Make celsius display as "°C" in taurus. Do it by registering a new unit (degreeC) equivalent to degC in taurus.core.units.UR This is a workaround until pint properly supports this. See: hgrecco/pint#546
Hi, I am doing the following workaround in my code in order to support both UR.define(u'degreeC = kelvin; offset: 273.15 = °C = ºC = degC = celsius') Any comment/suggestion? Something that may backfire and I should be aware of? Also, are there any plans in supporting this properly in pint? |
it seems ok to me. |
Closed in #811 |
It'd be nice if degreed units (Celsius, Fahrenheit, angles) would pretty print e.g.
'°F'
rather than
'degF'
Is this technically feasible? If someone can point me in the general direction, I'd be happy to put in a PR.
The text was updated successfully, but these errors were encountered: