fix(std_daq): temporarily handle file_path type in update_reference_with_file
This commit is contained in:
@@ -148,8 +148,15 @@ class StdDaqLiveProcessing:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
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"):
|
if file_path.startswith("/gpfs/test"):
|
||||||
file_path = file_path.replace("/gpfs/test", "/data/test")
|
file_path = file_path.replace("/gpfs/test", "/data/test")
|
||||||
|
########################################################
|
||||||
|
|
||||||
with h5py.File(file_path, "r") as file:
|
with h5py.File(file_path, "r") as file:
|
||||||
if entry not in file:
|
if entry not in file:
|
||||||
raise ValueError(f"Entry '{entry}' not found in the file.")
|
raise ValueError(f"Entry '{entry}' not found in the file.")
|
||||||
|
|||||||
Reference in New Issue
Block a user