mlz: entangle fix limit check

Change-Id: Ib430262057026054ac71053d25dfda340b48227a
Reviewed-on: https://forge.frm2.tum.de/review/c/secop/frappy/+/32921
Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
Tested-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
Alexander Zaft 2024-01-24 14:56:04 +01:00 committed by Markus Zolliker
parent 7d7cb02f17
commit b07d2ae8a3

View File

@ -483,7 +483,8 @@ class AnalogOutput(PyTangoDevice, Drivable):
# check if compatible # check if compatible
try: try:
dt = FloatRange(*tangoabslim) dt = FloatRange(*tangoabslim)
self.parameters['abslimits'].datatype.compatible(dt) dt.validate(self.parameters['abslimits'].datatype.min)
dt.validate(self.parameters['abslimits'].datatype.max)
except WrongTypeError as e: except WrongTypeError as e:
raise WrongTypeError(f'Absolute limits configured in frappy \'' raise WrongTypeError(f'Absolute limits configured in frappy \''
f'{self.abslimits}\' extend beyond the limits ' f'{self.abslimits}\' extend beyond the limits '