예제 #1
0
파일: tasks.py 프로젝트: favalex/openquake
def compute_quantile_curves(job_id, sites, realizations, quantiles):
    """Compute the quantile hazard curve for each site given."""

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

    return classical_psha.compute_quantile_hazard_curves(job_id, sites,
        realizations, quantiles)
예제 #2
0
파일: tasks.py 프로젝트: danciul/openquake
def compute_quantile_curves(job_id, sites):
    """Compute the quantile hazard curve for each site given."""

    logger = compute_quantile_curves.get_logger()

    logger.info("Computing QUANTILE curves for %s sites (job_id %s)"
            % (len(sites), job_id))

    engine = job.Job.from_kvs(job_id)

    return classical_psha.compute_quantile_hazard_curves(engine, sites)
예제 #3
0
def compute_quantile_curves(job_id, sites):
    """Compute the quantile hazard curve for each site given."""

    logger = compute_quantile_curves.get_logger()

    logger.info("Computing QUANTILE curves for %s sites (job_id %s)" %
                (len(sites), job_id))

    engine = job.Job.from_kvs(job_id)

    return classical_psha.compute_quantile_hazard_curves(engine, sites)
예제 #4
0
 def _run(self, sites):
     classical_psha.compute_quantile_hazard_curves(
             self.engine, sites)
예제 #5
0
 def _run(self, sites):
     classical_psha.compute_quantile_hazard_curves(
             self.engine, sites)
예제 #6
0
 def _run(self, sites, realizations, quantiles):
     classical_psha.compute_quantile_hazard_curves(
             self.job.job_id, sites, realizations, quantiles)