Exemple #1
0
def test_has_soma_points_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:
        nt.ok_(check.has_soma_points(load_data(f)))
Exemple #2
0
def test_has_soma_points_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:
        nt.ok_(check.has_soma_points(load_data(f)))
Exemple #3
0
def test_has_soma_points_bad_data():
    f = os.path.join(SWC_PATH, 'Single_apical_no_soma.swc')
    nt.ok_(not check.has_soma_points(load_data(f)))
Exemple #4
0
def test_has_soma_points_bad_data():
    f = os.path.join(SWC_PATH, 'Single_apical_no_soma.swc')
    nt.ok_(not check.has_soma_points(load_data(f)))