Example #1
0
def test_has_all_nonzero_neurite_radii_threshold():
    nrn = NEURONS['Neuron.swc']

    ids = nrn_chk.has_all_nonzero_neurite_radii(nrn)
    nt.ok_(ids.status)

    ids = nrn_chk.has_all_nonzero_neurite_radii(nrn, threshold=0.25)
    nt.assert_equal(len(ids.info), 122)
Example #2
0
def test_has_all_nonzero_neurite_radii_threshold():
    nrn = NEURONS['Neuron.swc']

    ids = nrn_chk.has_all_nonzero_neurite_radii(nrn)
    nt.ok_(ids.status)

    ids = nrn_chk.has_all_nonzero_neurite_radii(nrn, threshold=0.25)
    nt.assert_equal(len(ids.info), 122)
Example #3
0
def test_has_all_nonzero_neurite_radii_threshold():
    nrn = NEURONS['Neuron.swc']

    ids = nrn_chk.has_all_nonzero_neurite_radii(nrn)
    assert ids.status

    ids = nrn_chk.has_all_nonzero_neurite_radii(nrn, threshold=0.25)
    assert len(ids.info) == 122
Example #4
0
def test_nonzero_neurite_radii_bad_data():
    nrn = NEURONS['Neuron_zero_radius.swc']
    ids = nrn_chk.has_all_nonzero_neurite_radii(nrn)
    nt.assert_equal(ids.info, [(20, 10), (21, 0),
                               (22, 0), (22, 6),
                               (26, 1), (31, 9),
                               (50, 7)])
Example #5
0
def test_nonzero_neurite_radii_bad_data():
    nrn = NEURONS['Neuron_zero_radius.swc']
    ids = nrn_chk.has_all_nonzero_neurite_radii(nrn)
    nt.assert_equal(ids.info, [(20, 10), (21, 0),
                               (22, 0), (22, 6),
                               (26, 1), (31, 9),
                               (50, 7)])
Example #6
0
def test_nonzero_neurite_radii_good_data():
    files = ['Neuron.swc',
             'Single_apical.swc',
             'Single_basal.swc',
             'Single_axon.swc',
             'Neuron_2_branch.h5',
             ]

    for n in _pick(files):
        ids = nrn_chk.has_all_nonzero_neurite_radii(n)
        nt.ok_(len(ids.info) == 0)
Example #7
0
def test_nonzero_neurite_radii_good_data():
    files = ['Neuron.swc',
             'Single_apical.swc',
             'Single_basal.swc',
             'Single_axon.swc',
             'Neuron_2_branch.h5',
             ]

    for n in _pick(files):
        ids = nrn_chk.has_all_nonzero_neurite_radii(n)
        assert len(ids.info) == 0
Example #8
0
 def time_has_all_nonzero_neurite_radii(self):
     nc.has_all_nonzero_neurite_radii(self.neuron, threshold=0.0)
Example #9
0
 def time_has_all_nonzero_neurite_radii(self):
     nc.has_all_nonzero_neurite_radii(self.neuron, threshold=0.0)
Example #10
0
def test_nonzero_neurite_radii_bad_data():
    nrn = NEURONS['Neuron_zero_radius.swc']
    ids = nrn_chk.has_all_nonzero_neurite_radii(nrn, threshold=0.7)
    assert ids.info == [(0, 2)]