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

Make fork iterators homogeneous #1025

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions neurom/core/morphology.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ def is_homogeneous_point(self):

def is_forking_point(self):
"""Is this section a forking point?"""
return len(self.children) > 1
return self.is_homogeneous_point() and len(self.children) > 1

def is_bifurcation_point(self):
"""Is tree a bifurcation point?"""
return len(self.children) == 2
return self.is_homogeneous_point() and len(self.children) == 2

def is_leaf(self):
"""Is tree a leaf?"""
Expand Down
Loading