diff --git a/tangostationcontrol/tangostationcontrol/common/events/change_events.py b/tangostationcontrol/tangostationcontrol/common/events/change_events.py index cde4efa0a666f7ff8b2a780a527e56cb59c2d6ec..d95403b4cd63cefdad22e32a184a9d53a79615da 100644 --- a/tangostationcontrol/tangostationcontrol/common/events/change_events.py +++ b/tangostationcontrol/tangostationcontrol/common/events/change_events.py @@ -3,6 +3,8 @@ from typing import Dict +import numpy + from tango.server import Device @@ -34,7 +36,7 @@ class ChangeEvents: def send_change_event(self, attr_name: str, value: object | None): """Emits a CHANGE_EVENT if the attribute has changed value.""" - if self.prev_values.get(attr_name) == value: + if numpy.equal(self.prev_values.get(attr_name), value).all(): # no change return