Skip to content

Save recording_attributes before run_sorter() - #4795

Merged
alejoe91 merged 10 commits into
SpikeInterface:mainfrom
samuelgarcia:rec_attr_run_sorter
Sep 18, 2026
Merged

alejoe91 merged 10 commits into
SpikeInterface:mainfrom
samuelgarcia:rec_attr_run_sorter

Conversation

@samuelgarcia

Copy link
Copy Markdown
Member

@alejoe91 @chris
For the kilosort channel_ids stuff.

@samuelgarcia samuelgarcia added this to the 0.105.0 milestone Sep 17, 2026
Comment on lines +158 to +161
# save recording attributes in case the recording is not serializable or removed after sorting
rec_attributes = get_rec_attributes(recording)
rec_attributes_file = output_folder / "recording_attributes.json"
rec_attributes_file.write_text(json.dumps(check_json(rec_attributes), indent=4), encoding="utf8")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oooh ok this is very nice and simple.

Comment thread src/spikeinterface/sorters/external/kilosortbase.py
Comment thread src/spikeinterface/sorters/external/kilosortbase.py
@samuelgarcia

Copy link
Copy Markdown
Member Author

@alejoe91 : OK to add this in 0.0105.0 ?

chrishalcrow and others added 2 commits September 18, 2026 10:27
Comment thread src/spikeinterface/sorters/external/kilosortbase.py
@alejoe91 alejoe91 changed the title Szve recording attributes before run_sorter() Save recording_attributes before run_sorter() Sep 18, 2026
@alejoe91 alejoe91 added the sorters Related to sorters module label Sep 18, 2026
@alejoe91
alejoe91 merged commit 10a6e75 into SpikeInterface:main Sep 18, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sorters Related to sorters module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants