You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.
Hi all,
I have been having some hard time displaying attribute units on TaurusForm, with the warnings as below.
MainThread WARNING 2021-02-20 09:28:46,792 raspberrypi:10000.main/cpu/1.temperature: Unknown unit "oC" (will be treated as unitless)
MainThread WARNING 2021-02-20 09:28:46,943 raspberrypi:10000.main/cpu/1.cpu_percent: Unknown unit "%" (will be treated as unitless)
MainThread WARNING 2021-02-20 09:28:47,054 raspberrypi:10000.main/cpu/1.free_ram_percent: Unknown unit "%" (will be treated as unitless)
MainThread INFO 2021-02-20 09:28:51,875 TaurusRootLogger:
As seen, the issue is that my defined attribute units are not recognized. I am not sure if this is related to tango, pytango or taurus but I have been searching the documentations of all the three for a list of recognized units without success.
Does such a list exist?
Thanks!
The text was updated successfully, but these errors were encountered:
Taurus uses the pint module to parse and handle units.
See the pint docs for details on syntax for supported units and also on how to define your own units.
From your traces, you are looking for "celsius" and "%".
Note that the support of "%" requires a relatively recent version of pint, and also note that by default it is represented as dimensionless. If you want a better support of percent, you can define it yourself, as in the following snippet:
Thanks so much @cpascual . In the pint module I found a complete list of all units. Also the snippet for displaying "%" works perfectly. Can't thank you enough!
Best,
Dave
Hi all,
I have been having some hard time displaying attribute units on TaurusForm, with the warnings as below.
As seen, the issue is that my defined attribute units are not recognized. I am not sure if this is related to tango, pytango or taurus but I have been searching the documentations of all the three for a list of recognized units without success.
Does such a list exist?
Thanks!
The text was updated successfully, but these errors were encountered: