Skip to content

Propagate relative_to to dump_to_pickle#3990

Merged
alejoe91 merged 2 commits into
SpikeInterface:mainfrom
chrishalcrow:propagate-relative-to
Jun 17, 2025
Merged

Propagate relative_to to dump_to_pickle#3990
alejoe91 merged 2 commits into
SpikeInterface:mainfrom
chrishalcrow:propagate-relative-to

Conversation

@chrishalcrow
Copy link
Copy Markdown
Member

We don't propagate relative_to to dump_to_pickle in the dump method. This PR does.

The lack of propagation has a few consequences, including the fact that recording.save_to_folder and analyzer.save(folder='...') saves different recording info if pickled (but not if jsond).

Pretty sure it's a bug, but maybe there's a reason for this?

Added a test to check that pickleing and jsoning are (almost) the same for a saved-then-loaded recording.

@chrishalcrow chrishalcrow added the bug Something isn't working label Jun 17, 2025
@alejoe91
Copy link
Copy Markdown
Member

Nice catch! I always use the dump_to_pickle directly, so probably it went unniticed!

@alejoe91 alejoe91 merged commit a890676 into SpikeInterface:main Jun 17, 2025
15 checks passed
@chrishalcrow chrishalcrow deleted the propagate-relative-to branch June 18, 2025 06:35
@samuelgarcia
Copy link
Copy Markdown
Member

bien joué!

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants