Skip to content

Commit

Permalink
Use importlib version instead of .__version__
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Jun 26, 2024
1 parent 713c41b commit 073507a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/spikeinterface/sorters/external/kilosort4.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from ..basesorter import BaseSorter
from .kilosortbase import KilosortBase
from importlib.metadata import version

PathType = Union[str, Path]

Expand Down Expand Up @@ -129,7 +128,10 @@ def is_installed(cls):
@classmethod
def get_sorter_version(cls):
"""kilosort version <0.0.10 is always '4' z"""
return version("kilosort")
# Note this import clashes with version!
from importlib.metadata import version as importlib_version

return importlib_version("kilosort")

@classmethod
def _setup_recording(cls, recording, sorter_output_folder, params, verbose):
Expand Down

0 comments on commit 073507a

Please sign in to comment.