Smart retrieval of the exposure in a risk calculation

Bug #1361970 reported by Michele Simionato
6
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_calculation.exposure property:

1. if the `preloaded_exposure_model_id` parameter is set in job_risk.ini,
   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-calculation-id, since it becomes useless.

description: updated
summary: - Rules for finding the exposure in a risk calculation
+ Smart retrieval of the exposure in a risk calculation
description: updated
Revision history for this message
Michele Simionato (michele-simionato) wrote :
Changed in oq-engine:
assignee: nobody → Michele Simionato (michele-simionato)
milestone: none → 1.0.1
importance: Undecided → High
status: New → In Progress
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.
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.