def register_neurite_feature(name, func):
if name in NEURITEFEATURES:<EOL><INDENT>raise NeuroMError('<STR_LIT>' % name)<EOL><DEDENT>def _fun(neurites, neurite_type=_ntype.all):<EOL><INDENT>'''<STR_LIT>'''<EOL>return list(func(n) for n in _ineurites(neurites, filt=_is_type(neurite_type)))<EOL><DEDENT>NEURONFEATURES[name] = _fun<EOL>
Register a feature to be applied to neurites

    Parameters:
        name: name of the feature, used for access via get() function.
        func: single parameter function of a neurite.