From 82b1e4c8595d133453fea3efb853243a7af61b7c Mon Sep 17 00:00:00 2001 From: Michael Dales Date: Wed, 29 Jan 2025 19:06:33 +0000 Subject: [PATCH] Create the output directory for collated data if necessary --- validation/collate_data.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/validation/collate_data.py b/validation/collate_data.py index 1ba3aff..2a34e41 100644 --- a/validation/collate_data.py +++ b/validation/collate_data.py @@ -31,6 +31,9 @@ def collate_data( print(f"Found no manifests in {aoh_results}", file=sys.stderr) sys.exit(-1) + output_dir, _ = os.path.split(output_path) + os.makedirs(output_dir, exist_ok=True) + res = [] keys = None for manifest in manifests: