Esempio n. 1
0
def test_has_finite_radius_neurites_good_data():
    files = [os.path.join(SWC_PATH, f)
             for f in ['Neuron.swc',
                       'Single_apical.swc',
                       'Single_basal.swc',
                       'Single_axon.swc']]

    files.append(os.path.join(H5V1_PATH, 'Neuron_2_branch.h5'))

    for f in files:
        ok, ids = check.has_all_finite_radius_neurites(load_data(f))
        nt.ok_(ok)
        nt.ok_(len(ids) == 0)
Esempio n. 2
0
def test_has_finite_radius_neurites_good_data():
    files = [
        os.path.join(SWC_PATH, f) for f in [
            'Neuron.swc', 'Single_apical.swc', 'Single_basal.swc',
            'Single_axon.swc'
        ]
    ]

    files.append(os.path.join(H5V1_PATH, 'Neuron_2_branch.h5'))

    for f in files:
        ok, ids = check.has_all_finite_radius_neurites(load_data(f))
        nt.ok_(ok)
        nt.ok_(len(ids) == 0)
Esempio n. 3
0
def test_has_finite_radius_neurites_bad_data():
    f = os.path.join(SWC_PATH, 'Neuron_zero_radius.swc')
    ok, ids = check.has_all_finite_radius_neurites(load_data(f))
    nt.ok_(not ok)
    nt.ok_(ids == [194, 210, 246, 304, 493])
Esempio n. 4
0
def test_has_finite_radius_neurites_bad_data():
    f = os.path.join(SWC_PATH, 'Neuron_zero_radius.swc')
    ok, ids = check.has_all_finite_radius_neurites(load_data(f))
    nt.ok_(not ok)
    nt.ok_(ids == [194, 210, 246, 304, 493])