def segment_midpoints(neurites, neurite_type=NeuriteType.all):
def _seg_midpoint(sec):<EOL><INDENT>'''<STR_LIT>'''<EOL>pts = sec.points[:, COLS.XYZ]<EOL>return np.divide(np.add(pts[:-<NUM_LIT:1>], pts[<NUM_LIT:1>:]), <NUM_LIT>)<EOL><DEDENT>return map_segments(_seg_midpoint, neurites, neurite_type)<EOL>
Return a list of segment mid-points in a collection of neurites