hydromt.model.components.ModelComponent#
- class hydromt.model.components.ModelComponent(model: Model)[source]#
Abstract base class for ModelComponent.
Methods
__init__
(model)close
()Clean up all open datasets.
finish_write
()Finish the write functionality after cleanup was called for all components in the model.
read
()Read the file(s) into the component.
test_equal
(other)Test if two components are equal.
write
()Write the component to file(s).
Attributes
Return the data catalog of the model this component is associated with.
Return the model object this component is associated with.
name_in_model
Find the name of the component in the parent model components.
Return the root of the model this component is associated with.