def trunk_section_lengths(nrn, neurite_type=NeuriteType.all):
neurite_filter = is_type(neurite_type)<EOL>return [morphmath.section_length(s.root_node.points)<EOL>for s in nrn.neurites if neurite_filter(s)]<EOL>
list of lengths of trunk sections of neurites in a neuron