-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add has_no_root_node_jumps check #760
Conversation
Check that the neurites have their first point not further than `radius_multiplier * soma radius` from the soma center'''
This is required for the validator web service I've been asked to build |
@@ -223,6 +223,19 @@ def has_no_jumps(neuron, max_distance=30.0, axis='z'): | |||
return CheckResult(len(bad_ids) == 0, bad_ids) | |||
|
|||
|
|||
def has_no_root_node_jumps(neuron, radius_multiplier=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.
Not sure about the name of the function
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.
Not sure about the name radius_multiplier
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.
I can't think of better names
@@ -223,6 +223,19 @@ def has_no_jumps(neuron, max_distance=30.0, axis='z'): | |||
return CheckResult(len(bad_ids) == 0, bad_ids) | |||
|
|||
|
|||
def has_no_root_node_jumps(neuron, radius_multiplier=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.
I can't think of better names
Check that the neurites have their first point not further than
radius_multiplier * soma radius
from the soma center'''