diff --git a/siriuspy/siriuspy/VERSION b/siriuspy/siriuspy/VERSION index 38f77a65b..e9307ca57 100644 --- a/siriuspy/siriuspy/VERSION +++ b/siriuspy/siriuspy/VERSION @@ -1 +1 @@ -2.0.1 +2.0.2 diff --git a/siriuspy/siriuspy/devices/psconv.py b/siriuspy/siriuspy/devices/psconv.py index db6b505b7..18150a396 100644 --- a/siriuspy/siriuspy/devices/psconv.py +++ b/siriuspy/siriuspy/devices/psconv.py @@ -47,7 +47,14 @@ def value(self, current): @property def limits(self): """Return Property limits.""" - pvname = self.pvnames[0] + # NOTE: improve code. + try: + pvname = self.pvnames[0] + except TypeError: + # is a set + for pvn in self.pvnames: + if pvn.endswith('-SP'): + pvname = pvn pvobj = self.pv_object(pvname) limits = ( pvobj.lower_alarm_limit,