Skip to content

Commit

Permalink
Update maps generation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
utagawal committed Dec 17, 2024
1 parent 421a49d commit b914cef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions update_all_maps_without_restriction_and_check_dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def task(country):
#Get contours
get_contours(country_name, url)
#Launch script
#subprocess.run(["bash", "download_osm.sh",country_name,id,style,url])
subprocess.run(["bash", "download_osm.sh",country_name,id,style,url])
subprocess.run(["bash", "create_map.sh",country_name,id,style])


Expand All @@ -42,7 +42,7 @@ def task(country):

file_in.close()

with Pool(processes=3) as pool:
with Pool(processes=1) as pool:
# call the function for each item in parallel
pool.map(task, country_list)

4 changes: 2 additions & 2 deletions update_maps_only_osm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def createMap(country):

file_in.close()

with Pool(processes=1) as pool:
with Pool(processes=4) as pool:
pool.map(download, country_list)

with Pool(processes=3) as pool:
with Pool(processes=2) as pool:
pool.map(createMap, country_list)

0 comments on commit b914cef

Please sign in to comment.