-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix sholl_frequency
for NA neurite_type
#990
Fix sholl_frequency
for NA neurite_type
#990
Conversation
Codecov Report
@@ Coverage Diff @@
## master #990 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 36 36
Lines 2332 2334 +2
=========================================
+ Hits 2332 2334 +2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could explain this case in the docstring? So it's easier for the user to understand why an empty list is returned.
Good point. I added this case in the |
LGTM! |
@@ -3,10 +3,18 @@ Changelog | |||
|
|||
Version 3.2.0 | |||
------------- | |||
- Fix ``neurom.features.morphology.sholl_frequency`` to return an empty list when a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice; makes sense to me
With this change,
sholl_frequency
returns an empty list for aneurite_type
that is not present in the morphology.Fixes #987