mpas_tools.config.MpasConfigParser.write

MpasConfigParser.write(fp, include_sources=True, include_comments=True)[source]

Write the config options to the given file pointer.

Parameters:
  • fp (TestIO) – The file pointer to write to.

  • include_sources (bool, optional) – Whether to include a comment above each option indicating the source file where it was defined

  • include_comments (bool, optional) – Whether to include the original comments associated with each section or option