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.
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.
rootReturn the root of the model this component is associated with.
Methods
clear()Clear the vulnerability data.
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.