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.")