Number of bins in Probabilistic Event-based Risk Calculator needs to be adjustable

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

Bug Description

[et=8h]
[at=3.5h]

In order to compute the histogram of losses in the probabilistic event-based risk calculations, OpenQuake currently assumes by default a number of bins equal to 25. This value should be adjustable and included in the configuration file.

----------
Notes from Lars:

In the calculators/risk/general.py module, DEFAULT_NUMBER_OF_SAMPLES is a hard-coded constant. This needs to be turned into a required user-specified Risk parameter (with a more meaningful name than just 'DEFAULT_NUMBER_OF_SAMPLES')

Here's what that involves:
- define a new param (in openquake/job/params.py)
- add it to the database model (with constraints)
- add validator code
- remove the constant and replace all usage of it with this new user-specified parameter

description: updated
Changed in openquake:
assignee: nobody → Lars Butler (lars-butler)
importance: Undecided → Low
John Tarter (toh2)
Changed in openquake:
milestone: none → 0.5.1
Revision history for this message
Lars Butler (lars-butler) wrote :
Changed in openquake:
status: New → Incomplete
description: updated
Changed in openquake:
status: Incomplete → Confirmed
Changed in openquake:
status: Confirmed → In Progress
Revision history for this message
Lars Butler (lars-butler) wrote :
description: updated
Changed in openquake:
status: In Progress → Fix Committed
John Tarter (toh2)
Changed in openquake:
importance: Low → Medium
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.