hydromt_fiat.components.VulnerabilityComponent#
- class hydromt_fiat.components.VulnerabilityComponent(model: Model, *, filename: str = 'vulnerability/curves.csv')[source]#
Vulnerability component.
Uses the VulnerabilityData struct to store the data.
- Parameters:
model (Model) – HydroMT model instance (FIATModel).
filename (str, optional) – The default place that should be used for reading and writing unless the user overrides it. If a relative path is given it will be used as being relative to the model root. By default ‘vulnerability/curves.csv’.
Attributes
Vulnerability data.
data_catalogReturn the data catalog of the model this component is associated with.
modelReturn the model object this component is associated with.
name_in_modelFind the name of the component in the parent model components.
rootReturn the root of the model this component is associated with.
Methods
clear()Clear the vulnerability data.
close()Clean up all open datasets.
finish_write()Finish the write functionality after cleanup was called for all components in the model.
read([filename])Read the vulnerability data.
set(data, name)Set data in the vulnerability component.
setup(vulnerability_fname[, ...])Set up the vulnerability from a data source.
test_equal(other)Test if two components are equal.
write([filename])Write the vulnerability data.