Support for non structural losses

Bug #1174231 reported by matley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Engine
Fix Released
Critical
matley

Bug Description

The user should be able to specify multiple vulnerability files instead of a single one. E.g.

structural_vulnerability_file=foo.xml
occupants_vulnerability_file=bar.xml
contents_vulnerability_file=baz.xml
non_structural_vulnerability_file=foo.xml

These 4 params substitute the old one ("vulnerability_file"). It is ok if the user specify only one, two or three of them. In that case only the related analysis will be run.

Additionally for the scenario calculator a new parameter, time_event, is required only if contents_vulnerability_file is specified:

time_event = day

It is used to get the proper occupants value from the exposure file.

If an exposure lacks some value (e.g. no occupants but occupants_vulnerability_model has been specified) a warning during the calculation will be raised.

For each kind of output (e.g. LossCurve) we will end up with a final output for each vulnerability model specified.

Therefore, if previously we had x loss curve set, we will end up with (at most) 4 x loss curve set (one for each vulnerability file specified).

Tags: risk
Revision history for this message
matley (matley) wrote :
Changed in oq-engine:
status: New → In Progress
Changed in oq-engine:
status: In Progress → Fix Committed
Changed in oq-engine:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.