Smart retrieval of the exposure in a risk calculation
Bug #1361970 reported by
Michele Simionato
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Engine |
Fix Released
|
High
|
Michele Simionato |
Bug Description
I propose the following rules for the risk_calculatio
1. if the `preloaded_
use it
2. if an exposure_file parameter is defined in job_risk.ini, use it
3. if an exposure was used in the hazard job, use it
4. if no exposure is found, return None
Then, by running
openquake --rr job_risk.ini --hazard-job-id JOB_ID
if would be possible to avoid reloading the exposure if it was already loaded in the hazard. For this feature to work, we
must add a flag --hazard-job-id. At this point, it might be a good idea to remove --hazard-
description: | updated |
summary: |
- Rules for finding the exposure in a risk calculation + Smart retrieval of the exposure in a risk calculation |
description: | updated |
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.
https:/ /github. com/gem/ oq-engine/ pull/1508