Did I find the right examples for you? yes no

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

src/p/y/pypreprocess-HEAD/pypreprocess/external/nipy_labs/datasets/transforms/tests/test_affine_utils.py   pypreprocess(Download)
import numpy as np
 
from ..affine_utils import to_matrix_vector, from_matrix_vector
 
 
def test_to_matrix_vector():
    mat, vec, xform = build_xform()
    newmat, newvec = to_matrix_vector(xform)
    yield assert_equal, newmat, mat
    yield assert_equal, newvec, vec

src/n/i/nipy-0.3.0/nipy/labs/datasets/transforms/tests/test_affine_utils.py   nipy(Download)
import numpy as np
 
from ..affine_utils import to_matrix_vector, from_matrix_vector
 
 
def test_to_matrix_vector():
    mat, vec, xform = build_xform()
    newmat, newvec = to_matrix_vector(xform)
    yield assert_equal, newmat, mat
    yield assert_equal, newvec, vec