hydromt_wflow.WflowModel.set_config#

WflowModel.set_config(*args)#

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

Parameters:

args (key(s), value tuple, with minimal length of two) – keys can given by multiple args: (‘key1’, ‘key2’, ‘value’) or a string with ‘.’ indicating a new level: (‘key1.key2’, ‘value’)

Examples

>> # self.config = {‘a’: 1, ‘b’: {‘c’: {‘d’: 2}}}

>> set_config(‘a’, 99) >> {‘a’: 99, ‘b’: {‘c’: {‘d’: 2}}}

>> set_config(‘b’, ‘c’, ‘d’, 99) # identical to set_config(‘b.d.e’, 99) >> {‘a’: 1, ‘b’: {‘c’: {‘d’: 99}}}