Skip to content

Commit

Permalink
Add packaging to CI dependency.
Browse files Browse the repository at this point in the history
 On branch add_kilosort4_wrapper_tests
  • Loading branch information
JoeZiminski committed Jun 27, 2024
1 parent 21caaf9 commit 9bc1897
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/scripts/check_kilosort4_releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def get_pypi_versions(package_name):
data = response.json()
versions = list(sorted(data["releases"].keys()))
versions = [ver for ver in versions if parse(ver) >= parse("4.0.5")]
versions.pop(versions.index("4.0.4"))
return versions


Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_kilosort4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Install dependencies
run: |
pip install requests
pip install requests packaging
- name: Fetch package versions from PyPI
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/sorters/external/kilosort4.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _run_from_folder(cls, sorter_output_folder, params, verbose):

logging.basicConfig(level=logging.INFO)

if cls.get_sorter_version() < version.parse("4.0.5"):
if version.parse(cls.get_sorter_version()) < version.parse("4.0.5"):
raise RuntimeError(
"Kilosort versions before 4.0.5 are not supported"
"in SpikeInterface. "
Expand Down

0 comments on commit 9bc1897

Please sign in to comment.