Toggle Light / Dark / Auto color theme
Toggle table of contents sidebar
EDITCONFIGFILE
Copyright (c) 2025 MPI-M, Clara Bayley
—– CLEO —–
File: editconfigfile.py
Project: cleopy
Created Date: Wednesday 17th January 2024
Author: Clara Bayley (CB)
Additional Contributors:
—–
License: BSD 3-Clause “New” or “Revised” License
https://opensource.org/licenses/BSD-3-Clause
—–
File Description:
cleopy.editconfigfile. edit_config_params ( filename , params2change ) [source]
rewrites config YAML file with key,value pairs listed in params2change updated to new values
whilst preserving original YAML file’s formatting and comments etc.
cleopy.editconfigfile. update_param ( node , param , new_value ) [source]
Function to recursively searches for ‘param’ key in YAML node
and updates it’s value to with ‘new_value’ when found