Decorate readers to capture data lineage using record_data_lineage from src.meta_ops

This commit is contained in:
2025-09-20 11:02:09 +02:00
parent e96ecfa951
commit 5f6d0e4f2b
7 changed files with 22 additions and 14 deletions

View File

@@ -22,11 +22,12 @@ import logging
import utils.g5505_utils as utils
import src.hdf5_ops as hdf5_ops
import instruments.filereader_registry as filereader_registry
from src.meta_ops import record_data_lineage
def hdf5_file_reader(dest_file_obj_or_path, src_file_path=None, dest_group_name=None, work_with_copy: bool = True):
import inspect
@record_data_lineage(data_level=0)
def hdf5_file_reader(dest_file_obj_or_path, src_file_path : str = None, dest_group_name : str = None, work_with_copy: bool = True):
"""
Reads an HDF5 file and copies its contents to a destination group.
If an HDF5 file object is provided, it skips reading from a file path.