def test_bounding_box(self): shape = (10, 14, 16) coordmap = AffineTransform.identity(names) #print coordmap.affine.dtype, 'affine' self.assertEqual(bounding_box(coordmap, shape), ([0., 9.], [0, 13], [0, 15]))
def test_bounding_box(): shape = (10, 14, 16) coordmap = AffineTransform.identity(names) yield assert_equal( bounding_box(coordmap, shape), ((0., 9.), (0, 13), (0, 15)))
def test_bounding_box(self): shape = (10, 10, 10) coordmap = Affine.identity(names) #print coordmap.affine.dtype, 'affine' self.assertEqual(bounding_box(coordmap, shape), [[0., 9.], [0, 9], [0, 9]])