polaris.e3sm.init.inputdata.get_nonempty_option
- polaris.e3sm.init.inputdata.get_nonempty_option(config: PolarisConfigParser, section: str, option: str) str | None[source]
The stripped value of a config option, or
Noneif it is unset or blank. Blank is how a config file declares an option that has no default, such as a name only a person can assign.- Parameters:
config (polaris.config.PolarisConfigParser) – The config options.
section (str) – The config section.
option (str) – The config option.
- Returns:
str or None – The value, or
None.