Skip to content

Commit dd0c6d3

Browse files
authored
Merge pull request #3683 from alejoe91/python-3.13
Test Python 3.13
2 parents 27931b5 + 4082203 commit dd0c6d3

4 files changed

Lines changed: 7 additions & 15 deletions

File tree

.github/workflows/all-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
python-version: ["3.9", "3.12"] # Lower and higher versions we support
28+
python-version: ["3.9", "3.13"] # Lower and higher versions we support
2929
os: [macos-latest, windows-latest, ubuntu-latest]
3030
steps:
3131
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
]
88
description = "Python toolkit for analysis, visualization, and comparison of spike sorting output"
99
readme = "README.md"
10-
requires-python = ">=3.9,<3.13"
10+
requires-python = ">=3.9,<3.14"
1111
classifiers = [
1212
"Programming Language :: Python :: 3 :: Only",
1313
"License :: OSI Approved :: MIT License",
@@ -20,7 +20,8 @@ classifiers = [
2020

2121

2222
dependencies = [
23-
"numpy>=1.20",
23+
"numpy>=1.20;python_version<'3.13'",
24+
"numpy>=2.0.0;python_version>='3.13'",
2425
"threadpoolctl>=3.0.0",
2526
"tqdm",
2627
"zarr>=2.18,<3",
@@ -164,15 +165,6 @@ test = [
164165
# for sortingview backend
165166
"sortingview",
166167

167-
168-
## install tridesclous for testing ##
169-
"tridesclous>=1.6.8",
170-
171-
## sliding_nn
172-
"pymde",
173-
"torch",
174-
"pynndescent",
175-
176168
# curation
177169
"skops",
178170
"huggingface_hub",

src/spikeinterface/extractors/phykilosortextractors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(
5656
spike_clusters = np.atleast_1d(spike_clusters.squeeze())
5757

5858
clust_id = np.unique(spike_clusters)
59-
unique_unit_ids = list(clust_id)
59+
unique_unit_ids = [int(c) for c in clust_id]
6060
params = read_python(str(phy_folder / "params.py"))
6161
sampling_frequency = params["sample_rate"]
6262

src/spikeinterface/sorters/tests/test_runsorter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ def test_run_sorter_local(generate_recording, create_cache_folder):
2929
recording = generate_recording
3030
cache_folder = create_cache_folder
3131

32-
sorter_params = {"detect_threshold": 4.9}
32+
sorter_params = {"detection": {"detect_threshold": 4.9}}
3333

3434
sorting = run_sorter(
35-
"tridesclous",
35+
"tridesclous2",
3636
recording,
3737
output_folder=cache_folder / "sorting_tdc_local",
3838
remove_existing_folder=True,

0 commit comments

Comments
 (0)