Ejemplo n.º 1
0
 def test_process_pdf(self):
     event = AshEvent(
         working_dir=self.data_dir('temp'),
         volcano_name='Nama Gunung',
         volcano_location=[124.2, 6.9],
         eruption_height=7000,
         event_time=datetime.datetime.now().replace(
             tzinfo=timezone('Asia/Jakarta')),
         region='East Java',
         alert_level='Siaga',
         hazard_path=self.data_dir('hazard.tif'))
     event.impact_exists = True
     event.hazard_path = self.data_dir('hazard.tif')
     event.map_report_path = self.data_dir('temp/temp.pdf')
     event.nearby_html_path = self.data_dir('nearby-table.html')
     event.population_html_path = self.data_dir('population-table.html')
     event.landcover_html_path = self.data_dir('landcover-table.html')
     event.calculate_impact()
     event.generate_report()