[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
This parameter currently hardcoded here: https:/ /github. com/gem/ openquake/ blob/61af7f4e96 02ed486b7e97b75 36b68ab057b219f /openquake/ calculators/ risk/general. py#L52