From c5799cb37e90e4ca0d53f38a356d0cf9a6d1c3fd Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Mon, 16 Jun 2025 21:00:10 +0200 Subject: [PATCH] fix(std_daq): temporarily handle file_path type in update_reference_with_file --- tomcat_bec/devices/std_daq/std_daq_live_processing.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tomcat_bec/devices/std_daq/std_daq_live_processing.py b/tomcat_bec/devices/std_daq/std_daq_live_processing.py index c5d252a..9f3f491 100644 --- a/tomcat_bec/devices/std_daq/std_daq_live_processing.py +++ b/tomcat_bec/devices/std_daq/std_daq_live_processing.py @@ -148,8 +148,15 @@ class StdDaqLiveProcessing: """ try: + + ######################################################## + # Remove these lines once the mount is fixed + if not isinstance(file_path, str): + file_path = str(file_path) if file_path.startswith("/gpfs/test"): file_path = file_path.replace("/gpfs/test", "/data/test") + ######################################################## + with h5py.File(file_path, "r") as file: if entry not in file: raise ValueError(f"Entry '{entry}' not found in the file.")