From f56805aff946cb25c8e93ba49a99b2ae5d05e522 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Wed, 22 May 2024 15:19:57 +0200
Subject: [PATCH] Configure abs_change for some attributes so they can be
 polled as required by the Metadata device

---
 .../devices/base_device_classes/antennafield_device.py         | 3 +++
 .../tangostationcontrol/devices/sdp/digitalbeam.py             | 1 +
 2 files changed, 4 insertions(+)

diff --git a/tangostationcontrol/tangostationcontrol/devices/base_device_classes/antennafield_device.py b/tangostationcontrol/tangostationcontrol/devices/base_device_classes/antennafield_device.py
index db4a90d61..935375b48 100644
--- a/tangostationcontrol/tangostationcontrol/devices/base_device_classes/antennafield_device.py
+++ b/tangostationcontrol/tangostationcontrol/devices/base_device_classes/antennafield_device.py
@@ -467,6 +467,7 @@ class AF(LOFARDevice):
         dtype=((numpy.int64,),),
         max_dim_x=N_pol,
         max_dim_y=MAX_ANTENNA,
+        abs_change="1",
     )
     RCU_attenuator_dB_RW = MappedAttribute(
         "RCU_attenuator_dB_RW",
@@ -479,6 +480,7 @@ class AF(LOFARDevice):
         "RCU_DTH_freq_R",
         dtype=(numpy.int64,),
         max_dim_x=MAX_ANTENNA,
+        abs_change="1",
     )
     RCU_DTH_freq_RW = MappedAttribute(
         "RCU_DTH_freq_RW",
@@ -520,6 +522,7 @@ class AF(LOFARDevice):
         dtype=((numpy.int64,),),
         max_dim_x=2,
         max_dim_y=MAX_ANTENNA,
+        abs_change="1",
     )
     RCU_PCB_version_R = MappedAttribute(
         "RCU_PCB_version_R",
diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/digitalbeam.py b/tangostationcontrol/tangostationcontrol/devices/sdp/digitalbeam.py
index 1346d01d9..310c1d43f 100644
--- a/tangostationcontrol/tangostationcontrol/devices/sdp/digitalbeam.py
+++ b/tangostationcontrol/tangostationcontrol/devices/sdp/digitalbeam.py
@@ -102,6 +102,7 @@ class DigitalBeam(BeamDevice):
         max_dim_x=N_beamlets_ctrl,
         access=AttrWriteType.READ_WRITE,
         fisallowed="is_attribute_access_allowed",
+        abs_change="1",
     )
 
     def read_subband_select_RW(self):
-- 
GitLab