Ejemplo n.º 1
0
 def test_three_procs_one_dummy_fire_needed(self, reset_config):
     hysplit_utils.fill_in_dummy_fires(self.fire_sets, self.fires, 3,
         datetime.datetime(2018,11,9), 4,
         {"center_latitude": 40, "center_longitude": -110})
     assert len(self.fires) == 4
     assert self.fires[0:3] == self.original_fires
     assert len(self.fire_sets) == 3
     assert self.fire_sets[0:2] == self.original_fire_sets
     assert len(self.fire_sets[2]) == 1
     assert self.fire_sets[2][0] == self.fires[3]
Ejemplo n.º 2
0
    def test_two_procs_no_dummy_fires_needed(self, reset_config):
        hysplit_utils.fill_in_dummy_fires(self.fire_sets, self.fires, 2,
            datetime.datetime(2018,11,9), 4,
            {"center_latitude": 40, "center_longitude": -110})
        assert self.original_fires == self.fires
        assert self.original_fire_sets == self.fire_sets
        self.original_fires = copy.deepcopy(self.fires)
        self.original_fire_sets = copy.deepcopy(self.fire_sets)

        self.original_fires = copy.deepcopy(self.fires)
        self.original_fire_sets = copy.deepcopy(self.fire_sets)

        self.original_fires = copy.deepcopy(self.fires)
        self.original_fire_sets = copy.deepcopy(self.fire_sets)