Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherioszisis committed May 30, 2024
1 parent 3bbe21c commit 6996eeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion neurom/core/morphology.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def subtree_types(self):
for section in it:
# A subtree can start from a single branch or as a fork of the same type from a parent
# with different type.
if section.type != section.parent.type and section.type != subtree_types[-1]:
if section.type not in {section.parent.type, subtree_types[-1]}:
subtree_types.append(section.to_morphio().type)

return subtree_types
Expand Down
3 changes: 1 addition & 2 deletions tests/test_mixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,8 +1143,7 @@ def test_sholl_frequency_pop(mixed_morph):


def test_axon_fork_as_axon_carrying_dendrite():
"""Test that a axon subtree starting as a fork is considered an AcD.
"""
"""Test that a axon subtree starting as a fork is considered an AcD."""
m = neurom.load_morphology(
"""
1 1 0 0 0 0.5 -1
Expand Down

0 comments on commit 6996eeb

Please sign in to comment.