System.save_config#

System.save_config(file_path=None, overwrite=False)[source]#

Save all system, routine, and model configurations to an rc-formatted file.

Parameters:
file_pathstr or None, optional

Path to the configuration file. Defaults to ~/.ams/ams.rc.

overwritebool, optional

If True, overwrite an existing file without prompting.

Returns:
str or None

Path to the written config file, or None if write was skipped.

Notes

Adapted from andes.system.System.save_config. Original author: Hantao Cui. License: GPL-3.0.