hydromt_fiat.components.VulnerabilityComponent#

class hydromt_fiat.components.VulnerabilityComponent(model: Model, filename: str = 'vulnerability/curves.csv')[source]#

Custom vulnerability component.

Inherits from the HydroMT-core TablesComponent model-component.

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

data

Vulnerability data.

data_catalog

Return the data catalog of the model this component is associated with.

model

Return the model object this component is associated with.

root

Return the root of the model this component is associated with.

Methods

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.