Skip to content

Commit 1720df8

Browse files
committed
add test for the principle direction
1 parent 29840c9 commit 1720df8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/Neurons.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ const ARBOR_DENSITY_MAP_VOXEL_SIZE = (2000,2000,2000)
3838

3939
println("remove terminal blobs ...")
4040
@time neuron = Neurons.remove_terminal_blobs(neuron)
41-
println("after remove terminal blobs: $(Neurons.get_num_segments(neuron))")
41+
println("after remove terminal blobs: $(Neurons.get_num_segments(neuron))")
42+
43+
println("get principle direction based on the furthest terminal node pair...")
44+
@time vec, maxDistance = Neurons.get_furthest_terminal_node_pair_direction(neuron)
45+
@test maxDistance > 0
4246

4347
println("remove redundent nodes...")
4448
@time neuron = Neurons.remove_redundent_nodes(neuron)

0 commit comments

Comments
 (0)