Exemplo n.º 1
0
 def test_xy_ordered_cube(self):
     """Test extraction of diagnostic data that is natively ordered xy."""
     plugin = SpotExtraction()
     expected = [0, 0, 12, 12]
     result = plugin.extract_diagnostic_data(self.coordinate_cube,
                                             self.diagnostic_cube_xy)
     self.assertArrayEqual(result, expected)
Exemplo n.º 2
0
 def test_yx_ordered_cube(self):
     """Test extraction of diagnostic data that is natively ordered yx.
     This will be reordered before extraction to become xy."""
     plugin = SpotExtraction()
     expected = [0, 0, 12, 12]
     result = plugin.extract_diagnostic_data(self.coordinate_cube,
                                             self.diagnostic_cube_yx)
     self.assertArrayEqual(result, expected)