hydromt.model.ModelRoot#
- class hydromt.model.ModelRoot(path: Path, mode: ModelMode | str = 'w')[source]#
Handle model roots in a cross platform manner.
- Parameters:
path (
Path) – The path to the root of the model.mode (
ModelMode | str, optional) – The mode of the model (e.g. ‘r’ for reading, ‘w’ for writing etc.), by default “w”.
Methods
__init__(path[, mode])Test whether we are in override mode or not.
Test whether we are in reading mode or not.
Test whether we are in writing mode or not.
set(path[, mode])Set a new model root and mode.
Attributes
The mode of the model this object belongs to.
pathReturn the path of the model root.