marmot.utils.mconfig.edit_value#

edit_value(new_value: str, top_level: str, second_level: Optional[str] = None)[source]#

Edit the config.yml file through code.

Parameters
  • new_value (str) – New value to apply to config file.

  • top_level (str) – Top level of config dictionary, will return specified level and any sublevel.

  • second_level (str, optional) – Second level of config dictionary under top_level, will return a single value. Defaults to None.