Quantile hazard calculation fails when multiple logic tree branches are enumerated

Bug #1052837 reported by Lars Butler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
Critical
Lars Butler

Bug Description

Applies to classical hazard quantile post-processing.

In the case of end-branch enumeration with more than 1 branch, numpy.interp (used in quantile_curves_weighted) cannot handle the weights input properly. `weights` is passed as a list of decimal.Decimal types.

Numpy throws back this error: "TypeError: array cannot be safely cast to required type". This doesn't appear to be a problem when there is only a single end branch in the logic tree (and so the single weight is 1.0).

Revision history for this message
Lars Butler (lars-butler) wrote :
Changed in openquake:
milestone: none → 0.8.3
assignee: nobody → Lars Butler (lars-butler)
importance: Undecided → Medium
status: New → In Progress
Changed in openquake:
importance: Medium → Critical
status: In Progress → Fix Committed
Changed in openquake:
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.