Skip to content

Commit 01d1b93

Browse files
committed
fix: retrieve countries_centroids.geojson using brotli encoding
1 parent 23f30f5 commit 01d1b93

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

rules/sb.smk

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,18 @@ if config["enable"]["retrieve"]:
134134
"logs/retrieve_tyndp_vp_data.log",
135135

136136
rule retrieve_countries_centroids:
137-
input:
138-
storage(
139-
"https://cdn.jsdelivr.net/gh/gavinr/world-countries-centroids@v1.0.0/dist/countries.geojson"
140-
),
141137
output:
142138
"data/countries_centroids.geojson",
143139
log:
144140
"logs/retrieve_countries_centroids.log",
145-
retries: 2
146141
run:
147-
move(input[0], output[0])
142+
from scripts._helpers import progress_retrieve
143+
144+
progress_retrieve(
145+
"https://cdn.jsdelivr.net/gh/gavinr/world-countries-centroids@v1.0.0/dist/countries.geojson",
146+
output[0],
147+
disable=True,
148+
)
148149

149150

150151
# Development

0 commit comments

Comments
 (0)