Hazard map calculation: set iml = 0 if all poes are zero

Bug #1292093 reported by Damiano Monelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Engine
Fix Released
High
Michele Simionato

Bug Description

In the calculation of hazard maps if the probability of exceedance for which the map is computed is larger than the maximum poe in the curves, the minimum iml is taken. Example:

In [9]: poe = 0.4

In [10]: poes = [0.1, 0.2, 0.3]

In [11]: imls = [1, 0.1, 0.01]

In [12]: interp(poe, poes, imls)
Out[12]: 0.01

In this case we should extrapolate to zero instead of returning the minimum iml value.

Changed in oq-engine:
importance: Undecided → High
Revision history for this message
Michele Simionato (michele-simionato) wrote :
Changed in oq-engine:
status: New → In Progress
assignee: nobody → Michele Simionato (michele-simionato)
milestone: none → 1.0.1
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.