Skip to content

Make motion-corrected and silenced recordings JSON-serializable - #4877

Merged
alejoe91 merged 1 commit into
SpikeInterface:mainfrom
h-mayorquin:json_serializable_motion_and_silence
Oct 19, 2026
Merged

alejoe91 merged 1 commit into
SpikeInterface:mainfrom
h-mayorquin:json_serializable_motion_and_silence

Conversation

@h-mayorquin

Copy link
Copy Markdown
Contributor

This makes InterpolateMotionRecording (what correct_motion returns) and SilencedPeriodsRecording JSON-serializable, so chains that include them no longer have to be saved as pickles. Writing them to JSON already worked, but they could not be reloaded.

I looked into the git history and found no rationale for making them pickle-only. The motion opt-out was added in #3341 as a temporary fix for #3313, and the silence periods one in #4539 without discussion. I am doing this now because of the zarr v3 support in #4260: making these recordings JSON-serializable will make that transition easier, see my review there (#4260 (review)).

@alejoe91 alejoe91 added the core Changes to core module label Oct 19, 2026
@alejoe91
alejoe91 merged commit ac040e5 into SpikeInterface:main Oct 19, 2026
16 checks passed
@chrishalcrow

Copy link
Copy Markdown
Member

This is great - thanks @h-mayorquin !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Changes to core module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants