Update Classical PSHA-based Calculator algorithm
Bug #1165076 reported by
matley
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Risk Library |
Fix Released
|
Critical
|
matley |
Bug Description
Currently, the classical psha-based calculator assumes that a vulnerability function is strictly increasing.
However, the user should be able also to submit non-decreasing vulnerability function, but still be able to use the calculator.
In such case, as the vulnerability function is defined point-wise we just take into account the first intensity measure level and the first covariance coefficient given in input.
E.g.
Data in input:
imls = 0, 0.1, 0.2, 0.3
mean loss ratios = 0, 0.1, 0.1, 0.2
covs = 0, 0, 0.001, 0.002
Data considered:
imls = 0, 0.1, 0.3
mean loss ratios = 0, 0.1, 0.2
covs = 0, 0, 0.002
Changed in oq-risklib: | |
milestone: | none → 0.1 |
Changed in oq-risklib: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Pull request: https:/ /github. com/gem/ oq-risklib/ pull/50/