Пример #1
0
    def test_has_soma_points_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:
            nt.ok_(chk.has_soma_points(self.load_data(f)))
Пример #2
0
    def test_has_soma_points_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:
            nt.ok_(chk.has_soma_points(self.load_data(f)))
Пример #3
0
 def test_has_soma_points_bad_data(self):
     f = os.path.join(SWC_PATH, 'Single_apical_no_soma.swc')
     nt.ok_(not chk.has_soma_points(self.load_data(f)))
Пример #4
0
 def time_has_soma_points(self):
     sc.has_soma_points(self.data_wrapper)
Пример #5
0
 def time_has_soma_points(self):
     sc.has_soma_points(self.data_wrapper)
Пример #6
0
 def test_has_soma_points_bad_data(self):
     f = Path(SWC_PATH, 'Single_apical_no_soma.swc')
     nt.ok_(not chk.has_soma_points(self.load_data(f)))