Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dynamic Exposure
Legacy
gde_calculations_prototype
Commits
8b416d20
Commit
8b416d20
authored
Jun 14, 2021
by
Cecilia Nievas
Browse files
Changed read_config_file to adapt to new add_GHS_from_HDF5 name
parent
72b4eeb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
GDE_TOOLS_read_config_file.py
View file @
8b416d20
...
...
@@ -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"
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment