hydromt.model.ModelRoot.set#

ModelRoot.set(path: Path, mode: ModelMode | str | None = None) Path[source]#

Set a new model root and mode.

Parameters:
  • path (Path) – The path to the root of the model.

  • mode (ModelMode | str | None, optional) – The mode of the model. If not provided, the mode currently defined in the ModelRoot is used. By default None.

Returns:

The path to the new model root.

Return type:

Path