Skip to content

Commit

Permalink
remove NeuriteType.all from NEURITES (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
asanin-epfl committed Jun 15, 2021
1 parent 8d2fc96 commit 76ce6b3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Version 2.3.0
- Remove the cli command ``neurom features`` that listed all possible features. Instead a proper
documentation is provided on that topic. See :func:`neurom.features.get`.
- Make ``neurom.features.neuronfunc.sholl_crossings`` private.
- Remove ``NeuriteType.all`` from ``NEURITES``

Version 2.2.1
-------------
Expand Down
3 changes: 1 addition & 2 deletions neurom/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ class NeuriteType(IntEnum):


#: Collection of all neurite types
NEURITES = (NeuriteType.all,
NeuriteType.axon,
NEURITES = (NeuriteType.axon,
NeuriteType.apical_dendrite,
NeuriteType.basal_dendrite)

Expand Down
2 changes: 0 additions & 2 deletions tests/core/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@ def test_tree_type_checker():
assert tree_filter(mock_tree)

tree_filter = tree_type_checker(*NEURITES)
assert tree_filter('fake_tree')
assert tree_filter(mock_tree)

tree_filter = tree_type_checker(NEURITES)
assert tree_filter('fake_tree')
assert tree_filter(mock_tree)


Expand Down

0 comments on commit 76ce6b3

Please sign in to comment.