From afe31288a0c162f34737a8504d763a5b8d15eb4b Mon Sep 17 00:00:00 2001 From: Florez Ospina Juan Felipe Date: Fri, 27 Sep 2024 08:58:35 +0200 Subject: [PATCH] Refactored a few function calls due to ranming changes in utils module --- pipelines/metadata_revision.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pipelines/metadata_revision.py b/pipelines/metadata_revision.py index f5b2c5c..578c7bf 100644 --- a/pipelines/metadata_revision.py +++ b/pipelines/metadata_revision.py @@ -53,7 +53,7 @@ def first_initialize_metadata_review(hdf5_file_path, reviewer_attrs, restart = F # Verify if yaml snapshot of input h5 file exists if not os.path.exists(os.path.join(hdf5_file_path_tail,filename+YAML_EXT)): - raise ValueError("metadata review cannot be initialized. The associated .yaml file under review was not found. Run to_yaml(filename_path) ") + raise ValueError("metadata review cannot be initialized. The associated .yaml file under review was not found. Run serialize_metadata(filename_path) ") # Initialize metadata review workflow # print("Create branch metadata-review-by-"+initials+"\n") @@ -217,7 +217,7 @@ def update_hdf5_file_with_review(input_hdf5_file, yaml_review_file): yaml_dict = load_yaml(yaml_review_file) update_hdf5_attributes(input_hdf5_file, yaml_dict) # Regenerate yaml snapshot of updated HDF5 file - output_yml_filename_path = hdf5_ops.to_yaml(input_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}') def third_update_hdf5_file_with_review(input_hdf5_file, yaml_review_file, reviewer_attrs={}, hdf5_upload=False): @@ -367,7 +367,7 @@ def main(): output_filename_path = "output_files/unified_file_smog_chamber_2024-03-19_UTC-OFST_+0100_NG.h5" output_yml_filename_path = "output_files/unified_file_smog_chamber_2024-03-19_UTC-OFST_+0100_NG.yalm" output_yml_filename_path_tail, filename = os.path.split(output_yml_filename_path) - #output_yml_filename_path = hdf5_ops.to_yaml(output_filename_path) + #output_yml_filename_path = hdf5_ops.serialize_metadata(output_filename_path) #first_initialize_metadata_review(output_filename_path,initials='NG') #second_submit_metadata_review()