Skip to content

Commit

Permalink
Update run_herg_qc.py
Browse files Browse the repository at this point in the history
Allow for protocols in export_config.py that are not included in the dataset
  • Loading branch information
hilaryh authored Dec 11, 2024
1 parent cdbc4ed commit 7b86e2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pcpostprocess/scripts/run_herg_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def main():
sys.modules['export_config'] = export_config
spec.loader.exec_module(export_config)

data_list = os.listdir(args.data_directory)
export_config.D2S_QC = {x:y for x,y in export_config.D2S_QC.items() if any([x == '_'.join(z.split('_')[:-1]) for z in data_list])}
export_config.savedir = args.output_dir

args.saveID = export_config.saveID
Expand Down

0 comments on commit 7b86e2e

Please sign in to comment.