Exemplo n.º 1
0
    def test_simple_callback(self):
        def callback(cube, field, filename):
            cube.attributes['processing'] = 'fast-ff'

        list_of_cubes = list(load(self.fname, callback=callback))
        cube = self._merge_cubes(list_of_cubes)
        self.assertCML(cube)
Exemplo n.º 2
0
 def test_simple_callback(self):
     def callback(cube, field, filename):
         cube.attributes['processing'] = 'fast-ff'
     list_of_cubes = list(load(self.fname, callback=callback))
     cube = self._merge_cubes(list_of_cubes)
     self.assertCML(cube)
Exemplo n.º 3
0
 def test_simple(self):
     list_of_cubes = list(load(self.fname, None))
     cube = self._merge_cubes(list_of_cubes)
     self.assertCML(cube)
Exemplo n.º 4
0
 def test_simple(self):
     list_of_cubes = list(load(self.fname, None))
     cube = self._merge_cubes(list_of_cubes)
     self.assertCML(cube)