Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/d/i/dipy-0.7.1/dipy/io/__init__.py   dipy(Download)
# init for io routines
from __future__ import division, print_function, absolute_import
 
from .gradients import read_bvals_bvecs
from .dpy import Dpy

src/d/i/dipy-0.7.1/dipy/io/tests/test_dpy.py   dipy(Download)
from nibabel.tmpdirs import InTemporaryDirectory
 
from ..dpy import Dpy, have_tables
 
 
def test_dpy():
    fname = 'test.bin'
    with InTemporaryDirectory():
        dpw = Dpy(fname, 'w')
        A=np.ones((5,3))
        dpw.write_tracks([C,B,A])
        dpw.close()
        dpr = Dpy(fname, 'r')
        assert_equal(dpr.version()=='0.0.1',True)
        T=dpr.read_tracksi([0,1,2,0,0,2])