Exemple #1
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)
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)
Exemple #3
0
 def _run(self, sites, realizations):
     hazard_general.compute_mean_hazard_curves(
             self.job.job_id, sites, realizations)
Exemple #4
0
 def _run(self, sites, realizations):
     hazard_general.compute_mean_hazard_curves(self.job.job_id, sites,
                                               realizations)