Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/p/y/pypreprocess-HEAD/pypreprocess/external/nipy_labs/datasets/volumes/tests/test_volume_grid.py   pypreprocess(Download)
                    )
    x, y, z = np.random.random_integers(N, size=(3, 10)) - 1
    data_ = img.values_in_world(x, y, z)
    # Check that passing in arrays with different shapes raises an error
    yield np.testing.assert_raises, ValueError, \
 
    x, y, z = N*np.random.random(size=(3, 10))
    yield np.testing.assert_almost_equal, img1.values_in_world(x, y, z), \
        img2.values_in_world(x, y, z)
 

src/n/i/nipy-0.3.0/nipy/labs/datasets/volumes/tests/test_volume_grid.py   nipy(Download)
                    )
    x, y, z = np.random.random_integers(N, size=(3, 10)) - 1
    data_ = img.values_in_world(x, y, z)
    # Check that passing in arrays with different shapes raises an error
    yield np.testing.assert_raises, ValueError, \
 
    x, y, z = N*np.random.random(size=(3, 10))
    yield np.testing.assert_almost_equal, img1.values_in_world(x, y, z), \
        img2.values_in_world(x, y, z)