-
Notifications
You must be signed in to change notification settings - Fork 222
Add archived sorters and change rt-sort to rtsort #4077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
daf9b44
Add archived sorters and change rt-sort to rtsort
alejoe91 2afbafb
Move back TDC and SC to alive sorters
alejoe91 cc0f41e
Add TDC back to sortermap
alejoe91 c5828a8
Merge branch 'main' into rtsort-docker
alejoe91 b2736dc
Solve conflicts
alejoe91 7e5be51
Merge branch 'rtsort-docker' of github.com:alejoe91/spikeinterface in…
alejoe91 782f23a
Change rt-sort to rtsort in citations
alejoe91 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ | |
|
||
from spikeinterface.core import BaseRecording, NumpySorting, load | ||
from spikeinterface.core.core_tools import check_json, is_editable_mode | ||
from .sorterlist import sorter_dict | ||
from .utils import ( | ||
from spikeinterface.sorters.sorterlist import sorter_dict, archived_sorters | ||
from spikeinterface.sorters.utils import ( | ||
SpikeSortingError, | ||
has_nvidia, | ||
has_docker, | ||
|
@@ -28,7 +28,7 @@ | |
has_spython, | ||
has_docker_nvidia_installed, | ||
) | ||
from .container_tools import ( | ||
from spikeinterface.sorters.container_tools import ( | ||
find_recording_folders, | ||
path_to_unix, | ||
windows_extractor_dict_to_unix, | ||
|
@@ -43,14 +43,14 @@ | |
combinato="combinato", | ||
herdingspikes="herdingspikes", | ||
kilosort4="kilosort4", | ||
klusta="klusta", | ||
mountainsort4="mountainsort4", | ||
mountainsort5="mountainsort5", | ||
pykilosort="pykilosort", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pykilosort is only for < 3.10. I guess we are not there yet, but we are very close to needing to archive this. We should remember this. |
||
rtsort="rtsort", | ||
spykingcircus="spyking-circus", | ||
spykingcircus2="spyking-circus2", | ||
tridesclous="tridesclous", | ||
yass="yass", | ||
tridesclous2="tridesclous2", | ||
# Matlab compiled sorters: | ||
hdsort="hdsort-compiled", | ||
ironclust="ironclust-compiled", | ||
|
@@ -60,6 +60,9 @@ | |
kilosort3="kilosort3-compiled", | ||
waveclus="waveclus-compiled", | ||
waveclus_snippets="waveclus-compiled", | ||
# archived | ||
# klusta="klusta", | ||
# yass="yass", | ||
) | ||
|
||
SORTER_DOCKER_MAP = {k: f"{REGISTRY}/{v}-base" for k, v in SORTER_DOCKER_MAP.items()} | ||
|
@@ -127,6 +130,11 @@ def run_sorter( | |
-------- | ||
>>> sorting = run_sorter("tridesclous", recording) | ||
""" | ||
if sorter_name in archived_sorters(): | ||
raise ValueError( | ||
f"The sorter {sorter_name} is archived and no longer supported. " | ||
"Please use a different sorter or an older version of SpikeInterface." | ||
) | ||
|
||
common_kwargs = dict( | ||
sorter_name=sorter_name, | ||
|
@@ -547,7 +555,7 @@ def run_sorter_container( | |
res_output += str(container_client.run_command(cmd)) | ||
need_si_install = "ModuleNotFoundError" in res_output | ||
|
||
if need_si_install: | ||
if need_si_install or installation_mode == "dev": | ||
# update pip in container | ||
cmd = f"pip install --user --upgrade pip" | ||
res_output = container_client.run_command(cmd) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.