def principal_direction_extents(neurites, neurite_type=NeuriteType.all, direction=<NUM_LIT:0>):
def _pde(neurite):<EOL><INDENT>'''<STR_LIT>'''<EOL>points = neurite.points[:, :<NUM_LIT:3>]<EOL>return morphmath.principal_direction_extent(points)[direction]<EOL><DEDENT>return map(_pde, iter_neurites(neurites, filt=is_type(neurite_type)))<EOL>
Principal direction extent of neurites in neurons