From 5bcc233b149879bc75a2bab740362ba9e30af8bb Mon Sep 17 00:00:00 2001 From: yechenyan Date: Tue, 25 Feb 2025 21:23:31 +0800 Subject: [PATCH] fix: refactor retrieve_egon_data rule to use curl for data retrieval and ensure output directory exists --- Snakefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Snakefile b/Snakefile index 3e45d279c..8730af39a 100644 --- a/Snakefile +++ b/Snakefile @@ -167,8 +167,9 @@ rule retrieve_egon_data: mapping="data/egon/mapping_technologies.json", shell: """ - wget -O {output.spatial} "https://api.opendata.ffe.de/demandregio/demandregio_spatial?id_spatial=5&year=2018" - wget -O {output.mapping} "https://api.opendata.ffe.de/demandregio/demandregio_spatial_description?id_spatial=5" + mkdir -p data/egon + curl -o {output.spatial} "https://api.opendata.ffe.de/demandregio/demandregio_spatial?id_spatial=5&year=2018" + curl -o {output.mapping} "https://api.opendata.ffe.de/demandregio/demandregio_spatial_description?id_spatial=5" """