mpas_tools.config.MpasConfigParser.getlist

MpasConfigParser.getlist(section, option, dtype=<class 'str'>)[source]

Get an option value as a list for a given section.

Parameters
  • section (str) – The name of the config section

  • option (str) – The name of the config option

  • dtype ({Type[str], Type[int], Type[float]}) – The type of the elements in the list

Returns

value (list) – The value of the config option parsed into a list