Example #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)
Example #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)
Example #3
0
 def test_simple(self):
     list_of_cubes = list(load(self.fname, None))
     cube = self._merge_cubes(list_of_cubes)
     self.assertCML(cube)
Example #4
0
 def test_simple(self):
     list_of_cubes = list(load(self.fname, None))
     cube = self._merge_cubes(list_of_cubes)
     self.assertCML(cube)