polaris.namelist.parse_replacements

polaris.namelist.parse_replacements(package, namelist)[source]

Parse the replacement namelist options from the given file

Parameters
  • package (Package) – The package name or module object that contains namelist

  • namelist (str) – The name of the namelist replacements file to read from

Returns

replacements (dict) – A dictionary of replacement namelist options