Skip to content

Commit

Permalink
Merge pull request #449 from lnls-sirius/PR-fix-bugs
Browse files Browse the repository at this point in the history
Pr fix bugs
  • Loading branch information
xresende authored Apr 15, 2020
2 parents 7df01d1 + 7ee70ad commit fbc1c3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion siriuspy/siriuspy/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.1
2.0.2
9 changes: 8 additions & 1 deletion siriuspy/siriuspy/devices/psconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fbc1c3e

Please sign in to comment.