Commit 5b4a5c4c authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Added boundaries_type parameter to config file and its reader

parent 4e0fb231
......@@ -76,6 +76,8 @@ def check_parameters(config, section_name):
+ path_kind
+ ": THE PATH SPECIFIED IN THE CONFIG FILE DOES NOT EXIST"
)
if not config.has_option("File Paths", "boundaries_type"):
raise IOError("ERROR!! boundaries_type PARAMETER MISSING FROM CONFIG FILE!!")
elif section_name == "Available Results":
if not config.has_option("Available Results", "results_available_for"):
raise IOError("ERROR!! results_available_for PARAMETER MISSING FROM CONFIG FILE!!")
......
......@@ -23,6 +23,8 @@ sera_models_path = WRITE_PATH
sera_models_OQ_path = WRITE_PATH
# Path to the shapefiles of admin units used in SERA:
sera_boundaries_path = WRITE_PATH
# File type containing the boundaries ("shp"=Shapefile, "gpkg"=Geopackage):
boundaries_type = shp
# Path to the GHS layer:
ghs_path = WRITE_PATH
# Path to the GPW data:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment