File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Original file line number Diff line number Diff line change @@ -172,8 +172,8 @@ def process_osm(
172
172
#prompt user to confirm which years to fetch
173
173
year = typer .prompt ("Type 'all' to use all years, or enter the year to fetch OSM data from the following years: " , osm .years ,type = str )
174
174
if year != "all" :
175
- # repalce the years list with the selected year
176
- osm .years = [year ]
175
+ # replace the years list with the selected year
176
+ osm .years = [int ( year ) ]
177
177
178
178
# fetch OSM data for the selected years using the selected API
179
179
osm .osm_to_geojson (osm .years , skip_fetch )
@@ -231,7 +231,7 @@ def enrich_lulc(
231
231
year = typer .prompt ("Type 'all' to use all years, or enter the year to use for the LULC enrichment from the following years: " , lew .years ,type = str )
232
232
if year != "all" :
233
233
# replace the years list with the selected year
234
- lew .years = [year ]
234
+ lew .years = [int ( year ) ]
235
235
236
236
for year in lew .years :
237
237
# 1. prepare and merge LULC and OSM data
@@ -298,7 +298,7 @@ def recalc_impedance(
298
298
year = typer .prompt ("Type 'all' to use all years, or enter the year to use for the LULC enrichment from the following years: " , iw .years ,type = str )
299
299
if year != "all" :
300
300
# replace the years list with the selected year
301
- iw .years = [year ]
301
+ iw .years = [int ( year ) ]
302
302
303
303
for year in iw .years :
304
304
# 1. Process the impedance configuration (initial setup + lulc & osm stressors)
You can’t perform that action at this time.
0 commit comments