gem / oq-irmt-qgis

QGIS plugin to drive the OpenQuake Engine, to develop Social Vulnerability and Integrated Risk composite indices, and to predict building recovery times following an earthquake
https://plugins.qgis.org/plugins/svir/
8 stars 3 forks source link

Catch exception in case of incompatible damage states for recovery modeling #835

Closed ptormene closed 1 year ago

ptormene commented 1 year ago

Fixes https://github.com/gem/oq-irmt-qgis/issues/834

The new Infrastructure Risk Demos produce damages_rlzs that are used in integration tests for recovery modeling. The Water Supply Demo has a number of damages states compatible with the default settings of recovery modeling, but the Road Network Demo is incompatible. In that case, the plugin should return a clear error message instead of crashing.

I'm also adding the possibility to load the new csv outputs of infrastructure risk assessment as tables.