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 filecfdict (
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 Nonenoheader (
bool
, optional) – Set true for a single-level configuration dictionary with no headers, by default False**kwargs – Additional keyword arguments that are passed to the write_ini_config function.