예제 #1
0
파일: core.py 프로젝트: bwyss/oq-engine
def compute_mean_curves(job_id, sites, realizations):
    """Compute the mean hazard curve for each site given."""

    # We don't actually need the JobContext returned by this function
    # (yet) but this does check if the calculation is still in progress.
    utils_tasks.get_running_job(job_id)

    HAZARD_LOG.info("Computing MEAN curves for %s sites (job_id %s)" %
                    (len(sites), job_id))

    return general.compute_mean_hazard_curves(job_id, sites, realizations)
예제 #2
0
def compute_mean_curves(job_id, sites, realizations):
    """Compute the mean hazard curve for each site given."""

    # We don't actually need the JobContext returned by this function
    # (yet) but this does check if the calculation is still in progress.
    utils_tasks.get_running_job(job_id)

    HAZARD_LOG.info("Computing MEAN curves for %s sites (job_id %s)"
                    % (len(sites), job_id))

    return general.compute_mean_hazard_curves(job_id, sites, realizations)
예제 #3
0
 def _run(self, sites, realizations):
     hazard_general.compute_mean_hazard_curves(
             self.job.job_id, sites, realizations)
예제 #4
0
 def _run(self, sites, realizations):
     hazard_general.compute_mean_hazard_curves(self.job.job_id, sites,
                                               realizations)