Closed fernandohds564 closed 6 years ago
Thanks for the report. Here are the possible fixes:
any(map(lambda x: x<=info.low, value))
for iterators.What's your opinion? Do you use the alarm for array types?
Hi @xiaoqiangwang! Thank you for the quick reply!
That is a difficult question. It would be useful for us to have alarms for this type of PV, but we understand that this a deviation from the default behavior of EPICS waveform record and if you want to maintain compatibility it will be OK for us.
Whichever direction you decide to go, we will adapt yourselves. Thank you!
I add the alarm limits checking for array type in commit ad08df9. I have checked in the alarm_severity.py example. Would you verify that?
It is working perfectly, @xiaoqiangwang. Thank you!
If a PV array such as this one:
is defined in the database, the application crashes after the first attempt of setting the PV. This happens due to the limit checking made in the method
_checkNumericAlarm
of the classPVInfo
, where the code tries to compare the list containing the new values with the integer defined in the limits.This is the error message that I get after a simple
caput
: