Exemplo n.º 1
0
def test_one_point_branch_without_diameter_3d():
    test_tree = PointTree(np.array([1., 1., 1., 0.5, 2, 1, 0]))
    try:
        view.tree3d(test_tree, diameter=False)
        nt.ok_(True)
    except:
        nt.ok_(False)
Exemplo n.º 2
0
def test_tree3d():
    axes = []
    for tree in pt_neuron.neurites:
        fig, ax = view.tree3d(tree)
        axes.append(ax)
    nt.ok_(axes[0].get_data_ratio() > 1.00 )
    nt.ok_(axes[1].get_data_ratio() > 0.80 )
    nt.ok_(axes[2].get_data_ratio() > 1.00 )
    nt.ok_(axes[3].get_data_ratio() > 0.85 )
Exemplo n.º 3
0
def test_tree3d():
    axes = []
    for tree in fst_neuron.neurites:
        fig, ax = view.tree3d(tree)
        axes.append(ax)
    nt.ok_(axes[0].get_data_ratio() > 1.00)
    nt.ok_(axes[1].get_data_ratio() > 0.80)
    nt.ok_(axes[2].get_data_ratio() > 1.00)
    nt.ok_(axes[3].get_data_ratio() > 0.85)
Exemplo n.º 4
0
def test_one_point_branch():
    test_section = Section(points=np.array([[1., 1., 1., 0.5, 2, 1, 0]]))
    for diameter, linewidth in it.product((True, False),
                                          (0.0, 1.2)):
        view.tree(test_section, diameter=diameter, linewidth=linewidth)
        view.tree3d(test_section, diameter=diameter, linewidth=linewidth)