def test_nonzero_section_lengths_threshold(): nrn = NEURONS['Neuron.swc'] ids = check_morph.nonzero_section_lengths(nrn) nt.ok_(len(ids) == 0) ids = check_morph.nonzero_section_lengths(nrn, threshold=15.) nt.assert_equal(len(ids), 84)
def test_nonzero_section_lengths_threshold(): nrn = NEURONS['Neuron.swc'] ids = check.nonzero_section_lengths(nrn) nt.ok_(len(ids) == 0) ids = check.nonzero_section_lengths(nrn, threshold=15.) nt.assert_equal(len(ids), 84)
def test_nonzero_section_lengths_good_data(): files = ['Neuron.swc', 'Single_apical.swc', 'Single_basal.swc', 'Single_axon.swc', ] for i, nrn in enumerate(_pick(files)): ids = check_morph.nonzero_section_lengths(nrn) nt.ok_(len(ids) == 0)
def test_nonzero_section_lengths_good_data(): files = [ 'Neuron.swc', 'Single_apical.swc', 'Single_basal.swc', 'Single_axon.swc', ] for i, nrn in enumerate(_pick(files)): ids = check.nonzero_section_lengths(nrn) nt.ok_(len(ids) == 0)
def test_nonzero_section_lengths_bad_data(): nrn = NEURONS['Neuron_zero_length_sections.swc'] ids = check_morph.nonzero_section_lengths(nrn) nt.assert_equal(ids, [134])
def test_nonzero_section_lengths_bad_data(): nrn = NEURONS['Neuron_zero_length_sections.swc'] ids = check.nonzero_section_lengths(nrn) nt.assert_equal(ids, [134])