Removed unused import statements

This commit is contained in:
2024-10-28 16:37:32 +01:00
parent cc96672245
commit 74633adf7f

View File

@ -1,14 +1,8 @@
import sys
import os
root_dir = os.path.abspath(os.curdir)
sys.path.append(root_dir)
import subprocess
import h5py
import yaml
import utils.g5505_utils as utils
import src.hdf5_ops as hdf5_ops
import src.git_ops as git_ops
def load_yaml(yaml_review_file):
@ -159,8 +153,12 @@ def count(hdf5_obj,yml_dict):
print('additions',count_additions, 'deletions', count_delections)
if __name__ == "__main__":
if len(sys.argv) != 3:
print("Usage: python pipeline.py run <path/to/descriptor.json>")
if len(sys.argv) != 4:
print("Usage: python metadata_revision.py update <path/to/review_file.hdf5> <path/to/review_file.yaml>")
sys.exit(1)
if sys.argv[2] == 'update':
input_hdf5_file = sys.argv[3]
yaml_review_file = sys.argv[4]
update_hdf5_file_with_review(input_hdf5_file, yaml_review_file)
#run(sys.argv[2])