hydromt.model.ModelRoot#

class hydromt.model.ModelRoot(path: str | Path, mode: ModelMode | str = 'w')[source]#

A class to handle model roots in a cross platform manner.

__init__(path: str | Path, mode: ModelMode | str = 'w')[source]#

Methods

__init__(path[, mode])

is_override_mode()

Test whether we are in override mode or not.

is_reading_mode()

Test whether we are in reading mode or not.

is_writing_mode()

Test whether we are in writing mode or not.

set(path[, mode])

Set the path of the root, and create the necessary loggers.

Attributes

mode

The mode of the model this object belongs to.