mpas_analysis.configuration.MpasAnalysisConfigParser.getWithDefault¶
-
MpasAnalysisConfigParser.
getWithDefault
(self, section, option, default)[source]¶ Get an option, using the supplied default value if the option is not present.
- Parameters
- sectionstr
The section in the config file
- optionstr
The option in the config file
- defaultone of 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.