hydromt.config.configwrite#
- hydromt.config.configwrite(config_fn: str | Path, cfdict: dict, **kwargs) None [source]#
Write configuration/workflow dictionary to file.
- Parameters:
config_fn (Union[Path, str]) – Path to configuration file
cfdict (dict) – Configuration dictionary. If the configuration contains headers, the first level keys are the section headers, the second level option-value pairs.
encoding (str, optional) – File encoding, by default “utf-8”
cf (ConfigParser, optional) – Alternative configuration parser, by default None
noheader (bool, optional) – Set true for a single-level configuration dictionary with no headers, by default False