def compute_quantile_curves(job_id, sites, realizations, quantiles): """Compute the quantile 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 QUANTILE curves for %s sites (job_id %s)" % (len(sites), job_id)) return general.compute_quantile_hazard_curves(job_id, sites, realizations, quantiles)
def compute_quantile_curves(job_id, sites, realizations, quantiles): """Compute the quantile 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 QUANTILE curves for %s sites (job_id %s)" % (len(sites), job_id)) return general.compute_quantile_hazard_curves(job_id, sites, realizations, quantiles)
def _run(self, sites, realizations, quantiles): hazard_general.compute_quantile_hazard_curves( self.job_ctxt.job_id, sites, realizations, quantiles)
def _run(self, sites, realizations, quantiles): hazard_general.compute_quantile_hazard_curves(self.job_ctxt.job_id, sites, realizations, quantiles)