Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
Merge branch 'cmft-bug-394' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
cpascual committed Feb 22, 2017
2 parents 388f436 + 3ea85ff commit cef3f2e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/taurus/core/tango/tangoattribute.py
Expand Up @@ -812,7 +812,11 @@ def setRange(self, *limits):
limits = limits[0]
low, high = limits
low = Quantity(low)
if low.unitless:
low = Quantity(low.magnitude, self._units)
high = Quantity(high)
if high.unitless:
high = Quantity(high.magnitude, self._units)
TaurusAttribute.setRange(self, [low, high])
infoex = self._pytango_attrinfoex
if low.magnitude != float('-inf'):
Expand All @@ -830,7 +834,11 @@ def setWarnings(self, *limits):
limits = limits[0]
low, high = limits
low = Quantity(low)
if low.unitless:
low = Quantity(low.magnitude, self._units)
high = Quantity(high)
if high.unitless:
high = Quantity(high.magnitude, self._units)
TaurusAttribute.setWarnings(self, [low, high])
infoex = self._pytango_attrinfoex
if low.magnitude != float('-inf'):
Expand All @@ -848,7 +856,11 @@ def setAlarms(self, *limits):
limits = limits[0]
low, high = limits
low = Quantity(low)
if low.unitless:
low = Quantity(low.magnitude, self._units)
high = Quantity(high)
if high.unitless:
high = Quantity(high.magnitude, self._units)
TaurusAttribute.setAlarms(self, [low, high])
infoex = self._pytango_attrinfoex
if low.magnitude != float('-inf'):
Expand Down

0 comments on commit cef3f2e

Please sign in to comment.