mpas_analysis.configuration.MpasAnalysisConfigParser.getWithDefault¶
- MpasAnalysisConfigParser.getWithDefault(section, option, default)[source]¶
Get an option, using the supplied default value if the option is not present.
- Parameters
section (str) – The section in the config file
option (str) – The option in the config file
default ({bool, int, float, list, tuple, dict, str}) – The default value if the option and/or section is not found, used to determine the type of the option if it is found. If
default
is a list, tuple, or dict,getExpression(...)
is used if the option is present in the config file.