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

Add has_no_root_node_jumps check #760

Merged
merged 3 commits into from
Jul 18, 2019
Merged

Add has_no_root_node_jumps check #760

merged 3 commits into from
Jul 18, 2019

Conversation

wizmer
Copy link
Contributor

@wizmer wizmer commented Jul 8, 2019

Check that the neurites have their first point not further than
radius_multiplier * soma radius from the soma center'''

Check that the neurites have their first point not further than
`radius_multiplier * soma radius` from the soma center'''
@wizmer
Copy link
Contributor Author

wizmer commented Jul 8, 2019

This is required for the validator web service I've been asked to build

@wizmer wizmer requested a review from mgeplf July 8, 2019 15:03
@@ -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):
Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Collaborator

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):
Copy link
Collaborator

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

@wizmer wizmer merged commit 1c8db72 into BlueBrain:master Jul 18, 2019
@wizmer wizmer deleted the root_node_jump branch July 18, 2019 09:34
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.

2 participants