Decorate readers to capture data lineage using record_data_lineage from src.meta_ops
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user