Commit 8b416d20 authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Changed read_config_file to adapt to new add_GHS_from_HDF5 name

parent 72b4eeb2
......@@ -291,9 +291,9 @@ def check_parameters(config, section_name):
elif section_name == "SERA_mapping_admin_units_to_cells":
if not config.has_option("SERA_mapping_admin_units_to_cells", "countries"):
raise IOError("ERROR!! countries PARAMETER MISSING FROM CONFIG FILE!!")
elif section_name == "SERA_mapping_admin_units_to_cells_add_GHS":
elif section_name == "SERA_mapping_admin_units_to_cells_add_GHS_from_HDF5":
if not config.has_option(
"SERA_mapping_admin_units_to_cells_add_GHS", "ghs_input_filename"
"SERA_mapping_admin_units_to_cells_add_GHS_from_HDF5", "ghs_input_filename"
):
raise IOError("ERROR!! ghs_input_filename PARAMETER MISSING FROM CONFIG FILE!!")
elif section_name == "SERA_mapping_admin_units_to_cells_add_Sat":
......
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