def test_cut_neuron(self): dist, prox = pymaid.cut_neuron( self.n, self.slab_id, ) self.assertNotEqual(dist.nodes.shape, prox.nodes.shape) # Make sure dist and prox check out self.assertTrue(pymaid.distal_to(self.n, dist.root, prox.root))
def test_distal_to(self): self.assertTrue(pymaid.distal_to(self.n, self.leaf_id, self.n.root)) self.assertFalse(pymaid.distal_to(self.n, self.n.root, self.leaf_id))