w
Some checks failed
CI for csaxs_bec / test (pull_request) Failing after 1m0s
CI for csaxs_bec / test (push) Failing after 1m3s

This commit is contained in:
2025-12-16 09:03:41 +01:00
parent 3063767868
commit 01b2e2ea52

View File

@@ -183,15 +183,9 @@ class MCSCardCSAXS(PSIDeviceBase, MCSCard):
# Ignore updates for channels that are not setup through num_connected_channels
index = int(attr_name[3:]) # Extract index from 'mcaX'
if index > self.num_connected_channels:
if index > self.NUM_MCA_CHANNELS:
return
mca_channel = getattr(self, attr_name, None)
if mca_channel is None:
logger.error(f"Could not find matching MCA channel for signal {signal.name}")
return
mca_channel: AsyncSignal
if isinstance(value, np.ndarray):
value = value.tolist() # Convert numpy array to list
else: