Example #1
0
 def get_hazard_job(self):
     job = helpers.get_job(
         helpers.get_data_path("scenario_hazard/job.ini"),
         number_of_ground_motion_fields=1000)
     fname = self._test_path('gmf_scenario.csv')
     helpers.create_gmf_from_csv(job, fname, 'gmf_scenario')
     return job
Example #2
0
 def get_hazard_job(self):
     job = helpers.get_job(
         helpers.get_data_path("scenario_hazard/job.ini"))
     fname = os.path.join(os.path.dirname(case_1.__file__),
                          'gmf_scenario.csv')
     helpers.create_gmf_from_csv(job, fname, 'gmf_scenario')
     return job
Example #3
0
    def get_hazard_job(self):
        job = helpers.get_job(
            helpers.get_data_path("event_based_hazard/job.ini"),
            region_grid_spacing='0', ses_per_logic_tree_path='1')
        job.save()

        helpers.create_gmf_from_csv(job, self._test_path('gmf.csv'))

        return job
Example #4
0
 def get_hazard_job(self):
     job = helpers.get_job(
         helpers.get_data_path("scenario_hazard/job.ini"))
     fname = self._test_path('gmf_scenario.csv')
     helpers.create_gmf_from_csv(job, fname, 'gmf_scenario')
     # this is needed to make happy the GetterBuilder
     job.hazard_calculation.number_of_ground_motion_fields = 1000
     job.hazard_calculation.save()
     return job
Example #5
0
    def get_hazard_job(self):
        job = helpers.get_job(
            helpers.get_data_path("event_based_hazard/job.ini"),
            region_grid_spacing='0',
            ses_per_logic_tree_path='1')
        job.save()

        helpers.create_gmf_from_csv(job, self._test_path('gmf.csv'))

        return job
Example #6
0
    def get_hazard_job(self):
        job = helpers.get_job(
            helpers.get_data_path("event_based_hazard/job.ini"))

        job.hazard_calculation = models.HazardCalculation.objects.create(
            truncation_level=job.hazard_calculation.truncation_level,
            maximum_distance=job.hazard_calculation.maximum_distance,
            intensity_measure_types_and_levels=(
                job.hazard_calculation.intensity_measure_types_and_levels),
            calculation_mode="event_based",
            investigation_time=50,
            ses_per_logic_tree_path=1)
        job.save()

        helpers.create_gmf_from_csv(job, self._test_path('gmf.csv'))

        return job
Example #7
0
    def get_hazard_job(self):
        job = helpers.get_job(
            helpers.get_data_path("event_based_hazard/job.ini"))
        helpers.create_gmf_from_csv(job, self._test_path('gmf.csv'))

        return job
Example #8
0
 def get_hazard_job(self):
     job = helpers.get_job(helpers.get_data_path("scenario_hazard/job.ini"))
     fname = os.path.join(os.path.dirname(case_1.__file__),
                          'gmf_scenario.csv')
     helpers.create_gmf_from_csv(job, fname, 'gmf_scenario')
     return job
Example #9
0
 def get_hazard_job(self):
     job = helpers.get_job(
         helpers.get_data_path("scenario_hazard/job.ini"))
     fname = self._test_path('gmf_scenario.csv')
     helpers.create_gmf_from_csv(job, fname, 'gmf_scenario')
     return job
Example #10
0
 def get_hazard_job(self):
     job = helpers.get_job(helpers.get_data_path("scenario_hazard/job.ini"),
                           number_of_ground_motion_fields=1000)
     fname = self._test_path('gmf_scenario.csv')
     helpers.create_gmf_from_csv(job, fname, 'gmf_scenario')
     return job
Example #11
0
 def get_hazard_job(self):
     job = helpers.get_job(helpers.get_data_path("scenario_hazard/job.ini"))
     fname = self._test_path('gmf_scenario.csv')
     helpers.create_gmf_from_csv(job, fname, 'gmf_scenario')
     return job
Example #12
0
 def get_hazard_job(self):
     job = helpers.get_job(
         helpers.get_data_path("scenario_hazard/job.ini"))
     helpers.create_gmf_from_csv(
         job, self._test_path('../case_1/gmf_scenario.csv'), 'gmf_scenario')
     return job