hydromt_wflow.WflowSedimentModel.setup_config#

WflowSedimentModel.setup_config(data: Dict[str, Any])#

Set the config dictionary at key(s) with values.

Parameters:

data (Dict[str, Any]) – A dictionary with the values to be set. keys can be dotted like in set()

Examples

Setting data as a nested dictionary:

>> self.setup_config({'a': 1, 'b': {'c': {'d': 2}}})
>> self.config.data
{'a': 1, 'b': {'c': {'d': 2}}}

Setting data using dotted notation:

>> self.setup_config({'a.d.f.g': 1, 'b': {'c': {'d': 2}}})
>> self.config.data
{'a': {'d':{'f':{'g': 1}}}, 'b': {'c': {'d': 2}}}