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 None if 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:
Returns:

str or None – The value, or None.