def segment_lengths(neurites, neurite_type=NeuriteType.all):
def _seg_len(sec):<EOL><INDENT>'''<STR_LIT>'''<EOL>return np.linalg.norm(np.diff(sec.points[:, COLS.XYZ], axis=<NUM_LIT:0>), axis=<NUM_LIT:1>)<EOL><DEDENT>return map_segments(_seg_len, neurites, neurite_type)<EOL>
Lengths of the segments in a collection of neurites