hydromt.model.components.ConfigComponent.create#
- ConfigComponent.create(template: str | Path | None = None)[source]#
Create a new config file based on a template file.
It the template is not provided, the default template will be used if available. Only yaml and toml files are supported.
- Parameters:
template (
str
orPath
, optional) – Path to a template config file, by default None
Examples
>> self.create() >> self.data {} >> self.create(template='path/to/template.yml') >> self.data {'a': 1, 'b': {'c': {'d': 2}}}