Skip to content

Commit 281c32a

Browse files
yechenyanlkstrp
andauthored
fix: refactor retrieve_egon_data rule to use curl for data retrieval and ensure output directory exists (#46)
Co-authored-by: Lukas Trippe <[email protected]>
1 parent 86239ea commit 281c32a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Snakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ rule retrieve_egon_data:
183183
mapping="data/egon/mapping_technologies.json",
184184
shell:
185185
"""
186-
wget -O {output.spatial} "https://api.opendata.ffe.de/demandregio/demandregio_spatial?id_spatial=5&year=2018"
187-
wget -O {output.mapping} "https://api.opendata.ffe.de/demandregio/demandregio_spatial_description?id_spatial=5"
186+
mkdir -p data/egon
187+
curl -o {output.spatial} "https://api.opendata.ffe.de/demandregio/demandregio_spatial?id_spatial=5&year=2018"
188+
curl -o {output.mapping} "https://api.opendata.ffe.de/demandregio/demandregio_spatial_description?id_spatial=5"
188189
"""
189190

190191

0 commit comments

Comments
 (0)