def segment_volumes(neurites, neurite_type=NeuriteType.all):
def _func(sec):<EOL><INDENT>'''<STR_LIT>'''<EOL>return [morphmath.segment_volume(seg) for seg in zip(sec.points[:-<NUM_LIT:1>], sec.points[<NUM_LIT:1>:])]<EOL><DEDENT>return map_segments(_func, neurites, neurite_type)<EOL>
Volumes of the segments in a collection of neurites