fix(std_daq): temporarily handle file_path type in update_reference_with_file

This commit is contained in:
2025-06-16 21:00:10 +02:00
parent 8a1ceecc1b
commit c5799cb37e

View File

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