Ejemplo n.º 1
0
    def test_get_remote_bifurcation_angles(self):
        _close(_nrt.remote_bifurcation_angles(self.sec_nrn),
               get('remote_bifurcation_angles', self.ref_nrn))

        for t in NeuriteType:
            _close(_nrt.remote_bifurcation_angles(self.sec_nrn, neurite_type=t),
                   get('remote_bifurcation_angles', self.ref_nrn, neurite_type=t))

        ba = [_bf.remote_bifurcation_angle(b)
              for b in i_chain2(self.sec_nrn_trees, iterator_type=Section.ibifurcation_point)]

        _close(ba, get('remote_bifurcation_angles', self.ref_nrn))
Ejemplo n.º 2
0
def test_remote_bifurcation_angle():
    assert bf.remote_bifurcation_angle(SIMPLE.sections[0]) == np.pi
    assert bf.remote_bifurcation_angle(SIMPLE.sections[3]) == np.pi
    leaf = SIMPLE.section(2)
    assert_raises(NeuroMError, bf.local_bifurcation_angle, leaf)
Ejemplo n.º 3
0
def test_remote_bifurcation_angle():
    nt.ok_(bf.remote_bifurcation_angle(SIMPLE.sections[1]) == np.pi)
    nt.ok_(bf.remote_bifurcation_angle(SIMPLE.sections[4]) == np.pi)
    assert_raises(NeuroMError, bf.local_bifurcation_angle, SIMPLE.sections[0])