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
sr.design.get_bpm("BPMZ5D1R").positions.get() # already SIsr.live.get_bpm("BPMZ5D1R").positions.get() # should return values always in [m], conversion to SI should be handle internally using pint
defget(self) ->float|list[float]:
"""Return the setpoint(s) [or readback(s) when read only variable] of a control system device variable in SI"""value=self.signal.read() # Raw value from control systemQ=value*ureg(self.unit)
returnQ.to(self.si_unit).m# Will it work like this for arrays using pint ?
How we deal with unit conv in Tango
We have this configuration: Unit is the unit displayed Display Unit the conversion factor to go from the raw device value to displayed value Standard Unit is the conversion factor to go from the raw device value to SI
Problem:
We often make errors by sending the value displayed in application to the raw device when we write script.
Activity