hydromodpy.core.toml_io.merge#
TOML payload merge helpers.
Lists in TOML overlays replace the base value by default. To append instead,
use the <key>__append suffix in the overlay. To remove an inherited key,
use <key>__delete = true:
[base]
process = ["A", "B"]
# overlay
[base]
process__append = ["C"]
# result: process = ["A", "B", "C"]
mesh_catchment__delete = true
The suffixes are stripped during merge and never appear in the validated
HydroModPyConfig payload.
Functions
|
Merge TOML payload layers in HydroModPy precedence order. |