From b914cef0d7360076b2a726d4b68dbee39b06a30b Mon Sep 17 00:00:00 2001 From: Lilian Morinon Date: Tue, 17 Dec 2024 17:33:18 +0100 Subject: [PATCH] Update maps generation scripts --- update_all_maps_without_restriction_and_check_dem.py | 4 ++-- update_maps_only_osm.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/update_all_maps_without_restriction_and_check_dem.py b/update_all_maps_without_restriction_and_check_dem.py index ba78b47..0908707 100644 --- a/update_all_maps_without_restriction_and_check_dem.py +++ b/update_all_maps_without_restriction_and_check_dem.py @@ -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]) @@ -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) diff --git a/update_maps_only_osm.py b/update_maps_only_osm.py index 9fceedb..cac4615 100644 --- a/update_maps_only_osm.py +++ b/update_maps_only_osm.py @@ -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)