This repository has been archived by the owner on Feb 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use decorator to register feature (#860)
# New feature: The features are no longer registered as a hard coded list of functions but as follows: ```python @feature(shape=[Shape.OnePerSegment], namespace='NEURITEFEATURES') def segment_meander_angles(neurites, neurite_type=NeuriteType.all): """Inter-segment opening angles in a section.""" ... ``` The 'shape' argument of the decorator holds the shape (a la numpy) of the output result of the function. # Deprecation `register_neurite_feature` is now deprecated and is replaced by the `@feature` decorator. # Fix Fix issue with the documentation that was still using the old module name `neurom.fst` instead of `neurom.features` # Note: This commit will be used in a following PR to fix: #859
- Loading branch information
Benoit Coste
authored
Jan 7, 2021
1 parent
f9561c8
commit ed3d900
Showing
7 changed files
with
220 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.