From 0399fbb3c68eacefca22080c26aa822c521d0a86 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas@kluyver.me.uk>
Date: Tue, 2 Jan 2024 16:42:19 +0000
Subject: [PATCH] Add missing pdu_names property to MultiModuleConstant

---
 src/cal_tools/calcat_interface2.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/cal_tools/calcat_interface2.py b/src/cal_tools/calcat_interface2.py
index 80746f58b..10ffa40f6 100644
--- a/src/cal_tools/calcat_interface2.py
+++ b/src/cal_tools/calcat_interface2.py
@@ -322,6 +322,14 @@ class MultiModuleConstant:
             if m["karabo_da"] in self.constants
         ]
 
+    @property
+    def pdu_names(self):
+        return [
+            m["physical_name"]
+            for m in self.module_details
+            if m["karabo_da"] in self.constants
+        ]
+
     def ndarray(self, caldb_root=None, *, parallel=0):
         eg_dset = self.constants[self.aggregator_names[0]].dataset_obj(caldb_root)
         shape = (len(self.constants),) + eg_dset.shape
-- 
GitLab