Serialize Loss Curves to the OQ DB
Bug #797704 reported by
Lars Butler
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
Critical
|
Gabriele Favalessa |
Bug Description
Currently, loss curves are only serialized to to XML (and SVG too, I think). We should be able to support a user option for serializing to the DB or to XML.
Changed in openquake: | |
importance: | Undecided → Critical |
status: | New → Confirmed |
Changed in openquake: | |
assignee: | nobody → Gabriele Favalessa (favalex) |
Changed in openquake: | |
status: | Confirmed → Fix Committed |
tags: | added: database risk |
Changed in openquake: | |
status: | Fix Committed → In Progress |
Changed in openquake: | |
milestone: | none → 0.4.1 |
Changed in openquake: | |
status: | In Progress → Fix Committed |
Changed in openquake: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
After a loss curve calculation we need to store, for each asset, the following
information:
1) an asset identifier (string)
2) the asset site (point)
3) the loss (array of floats)
4) the PoE (array of floats)
5) some information on the parameters openquake used to compute this curve
One such parameter is the vulnerabitily function. Another one, not
implemented yet but possible, is the end branch label of the logic tree.
Point 5 raises some questions:
- is it really used? Some of our sample xml do indeed contain multiple
curves for the same asset, distinguished by a different endBranchLabel
attribute.
- in the case it is used by the current risk engine, is endBranchLabel an
appropriate name for it?
- after a calculation how many distinct endBranchLabels (I keep using the
existing name for convenience) are we expected to see? Just the order of
magnitude.
- after a calculation will all the asset have the same number of curves
associated with them, with the same endBranchLabels (the curves themselves
will need not to be the same, of course).