From 7ee9c9e00f786bdd40438d4a48e9c6bf0ab78432 Mon Sep 17 00:00:00 2001 From: zh320 <68283806+zh320@users.noreply.github.com> Date: Mon, 11 May 2026 15:44:08 +0200 Subject: [PATCH] create directory before downloading reference test data --- tests/test_pipeline.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_pipeline.py b/tests/test_pipeline.py index 2fe9fd0..d1d7127 100644 --- a/tests/test_pipeline.py +++ b/tests/test_pipeline.py @@ -74,6 +74,7 @@ def run_pipline(registration_config_path, registration_snakefile, transform_conf ref_path = registration_config["moving_image"]["ref_path"] if not Path(ref_path).exists(): + Path(ref_path).parent.mkdir(parents=True, exist_ok=True) ref_url = registration_config["moving_image"]["ref_url"] download_file(ref_path, ref_url)