gem / oq-engine

OpenQuake Engine: a software for Seismic Hazard and Risk Analysis
https://github.com/gem/oq-engine/#openquake-engine
GNU Affero General Public License v3.0
377 stars 273 forks source link

classical_risk is ignoring risk_investigation_time #7927

Closed raoanirudh closed 1 year ago

raoanirudh commented 2 years ago

The loss curves outputs should provide the probability of exceedance of the corresponding loss values within the risk_investigation_time. The average loss, computed as the area under the loss exceedance curve is thus also dependent on the risk_investigation_time. See Equation 5 in the attached specs sheet: Specs - Classical PSHA-Based Risk Calculator.pdf.

Bug reported on the forum: https://groups.google.com/g/openquake-users/c/IDAOfgv9kkE/m/rHvcKMPqAwAJ

micheles commented 1 year ago

We need to run the tests in ~/oq-risk-tests/test/classical_risk/inputs