Updated function dependencies to reflect changes made to hdf5_ops.py
This commit is contained in:
@ -8,7 +8,6 @@ import h5py
|
||||
import yaml
|
||||
import utils.g5505_utils as utils
|
||||
import src.hdf5_ops as hdf5_ops
|
||||
import src.hdf5_lib as hdf5_lib
|
||||
import src.git_ops as git_ops
|
||||
|
||||
|
||||
@ -218,7 +217,7 @@ def update_hdf5_file_with_review(input_hdf5_file, yaml_review_file):
|
||||
|
||||
# Initialize HDF5 operations manager
|
||||
DataOpsAPI = hdf5_ops.HDF5DataOpsManager(input_hdf5_file)
|
||||
DataOpsAPI.open_file()
|
||||
DataOpsAPI.load_file_obj()
|
||||
|
||||
# Iterate over each object in the YAML dictionary
|
||||
for obj_name, attr_dict in yaml_dict.items():
|
||||
@ -254,7 +253,7 @@ def update_hdf5_file_with_review(input_hdf5_file, yaml_review_file):
|
||||
DataOpsAPI.delete_metadata(obj_name, delete_dict)
|
||||
|
||||
# Close hdf5 file
|
||||
DataOpsAPI.close_file()
|
||||
DataOpsAPI.unload_file_obj()
|
||||
# Regenerate yaml snapshot of updated HDF5 file
|
||||
output_yml_filename_path = hdf5_ops.serialize_metadata(input_hdf5_file)
|
||||
print(f'{output_yml_filename_path} was successfully regenerated from the updated version of{input_hdf5_file}')
|
||||
|
Reference in New Issue
Block a user