Skip to content

Commit

Permalink
Add __version__ attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet committed Apr 23, 2024
1 parent 90224b1 commit 0654da0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions neurom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
>>> mapping = lambda n : len(n.points)
>>> n_points = [n for n in nm.iter_neurites(pop, mapping, filter)]
"""
from importlib.metadata import version

from neurom.core.dataformat import COLS
from neurom.core.morphology import graft_morphology, iter_neurites, iter_sections, iter_segments
from neurom.core.types import NEURITES as NEURITE_TYPES
Expand All @@ -68,3 +70,5 @@
AXON = NeuriteType.axon
SOMA = NeuriteType.soma
ANY_NEURITE = NeuriteType.all

__version__ = version(__package__)

0 comments on commit 0654da0

Please sign in to comment.