Did I find the right examples for you? yes no

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

src/p/y/pypreprocess-HEAD/pypreprocess/external/nipy_labs/datasets/transforms/tests/test_affine_transform.py   pypreprocess(Download)
from nose.tools import assert_equal, assert_true
 
from ..affine_transform import AffineTransform
 
def test_compose_with_inverse():
        affine = np.eye(4)
        affine[:3, :3] = np.random.random((3, 3))
        transform = AffineTransform('in', 'out', affine)
        identity = transform.composed_with(
                        transform.get_inverse())
def test_misc():
    """ Test misc private methods for AffineTransform.
    """
    transform = AffineTransform('in', 'out', np.random.random((3, 3)))
 

src/n/i/nipy-0.3.0/nipy/labs/datasets/transforms/tests/test_affine_transform.py   nipy(Download)
from nose.tools import assert_equal, assert_true
 
from ..affine_transform import AffineTransform
 
def test_compose_with_inverse():
        affine = np.eye(4)
        affine[:3, :3] = np.random.random((3, 3))
        transform = AffineTransform('in', 'out', affine)
        identity = transform.composed_with(
                        transform.get_inverse())
def test_misc():
    """ Test misc private methods for AffineTransform.
    """
    transform = AffineTransform('in', 'out', np.random.random((3, 3)))