Skip to content
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

Merged
merged 4 commits into from
Feb 28, 2022

Conversation

eleftherioszisis
Copy link
Contributor

@eleftherioszisis eleftherioszisis commented Feb 28, 2022

With this change, sholl_frequency returns an empty list for a neurite_type that is not present in the morphology.

Fixes #987

@codecov-commenter
Copy link

Codecov Report

Merging #990 (13646db) into master (d120263) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #990   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           36        36           
  Lines         2332      2334    +2     
=========================================
+ Hits          2332      2334    +2     

Copy link
Member

@adrien-berchet adrien-berchet left a 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.

@eleftherioszisis
Copy link
Contributor Author

eleftherioszisis commented Feb 28, 2022

Good point. I added this case in the Note section of the docstring.

@adrien-berchet
Copy link
Member

LGTM!

@eleftherioszisis eleftherioszisis merged commit d896651 into master Feb 28, 2022
@eleftherioszisis eleftherioszisis deleted the zisis/fix-sholl-frequency-NA-neurite_type branch February 28, 2022 10:50
@@ -3,10 +3,18 @@ Changelog

Version 3.2.0
-------------
- Fix ``neurom.features.morphology.sholl_frequency`` to return an empty list when a
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sholl_frequency fails if neurite_type not in morphology
4 participants