def test_has_finite_radius_neurites_good_data(self):
        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 = chk.has_all_finite_radius_neurites(self.load_data(f))
            nt.ok_(ok)
            nt.ok_(len(ok.info) == 0)
    def test_has_finite_radius_neurites_good_data(self):
        files = [Path(SWC_PATH, f)
                 for f in ['Neuron.swc',
                           'Single_apical.swc',
                           'Single_basal.swc',
                           'Single_axon.swc']]

        files.append(Path(H5V1_PATH, 'Neuron_2_branch.h5'))

        for f in files:
            ok = chk.has_all_finite_radius_neurites(self.load_data(f))
            nt.ok_(ok)
            nt.ok_(len(ok.info) == 0)
 def test_has_finite_radius_neurites_bad_data(self):
     f = os.path.join(SWC_PATH, 'Neuron_zero_radius.swc')
     ok = chk.has_all_finite_radius_neurites(self.load_data(f))
     nt.ok_(not ok)
     nt.ok_(ok.info == [194, 210, 246, 304, 493])
Example #4
0
 def time_has_all_finite_radius_neurites(self):
     sc.has_all_finite_radius_neurites(self.data_wrapper, threshold=0.0)
Example #5
0
 def time_has_all_finite_radius_neurites(self):
     sc.has_all_finite_radius_neurites(self.data_wrapper, threshold=0.0)
Example #6
0
 def test_has_finite_radius_neurites_bad_data(self):
     f = Path(SWC_PATH, 'Neuron_zero_radius.swc')
     ok = chk.has_all_finite_radius_neurites(self.load_data(f))
     nt.ok_(not ok)
     nt.ok_(list(ok.info) == [194, 210, 246, 304, 493])