Move the partition logic into the base risk mixin

Bug #809276 reported by Andrea Cerisara
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
Medium
Unassigned

Bug Description

The logic that splits the exposure sites into blocks (openquake.job.Job._partition) is used only by the risk subsystem, but it's done in the main Job class. Since we can now launch just hazard jobs, I propose to move it into the risk subsystem (openquake.risk.job.general.RiskJobMixin), so we can:

* avoid an unnecessary parsing when computing only hazard jobs
* when computing hazard + risk jobs, we can read the file only once (storing the assets + creating blocks)

Changed in openquake:
milestone: none → 0.4.1
Changed in openquake:
assignee: nobody → Andrea Cerisara (andreacerisara-b)
Changed in openquake:
status: New → In Progress
John Tarter (toh2)
Changed in openquake:
importance: Undecided → Medium
John Tarter (toh2)
Changed in openquake:
status: In Progress → Fix Committed
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

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.