Skip to content

Save dtype in phase_shift kwargs - #4886

Merged
alejoe91 merged 1 commit into
SpikeInterface:mainfrom
h-mayorquin:fix_dtype_bug
Oct 21, 2026
Merged

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

Conversation

@h-mayorquin

Copy link
Copy Markdown
Contributor

I am reviewing #4563 by @galenlynch and I noticed that it also fixes a bug on main: phase_shift does not store dtype in its kwargs. A recording built with dtype="float32" comes back with the parent dtype when it is reloaded from its dict, and save with spawn workers (the default on macOS and Windows) writes values rounded to integers because the workers rebuild the recording from that dict.

This PR peels that fix off from #4563 as that PR has been waiting for a while and this is something we can merge independently. The fix is @galenlynch's, so the commit credits him as co-author. I also added a test that fails on main.

Co-authored-by: Galen Lynch <galen@galenlynch.com>
@h-mayorquin h-mayorquin self-assigned this Oct 20, 2026
@h-mayorquin h-mayorquin added the bug Something isn't working label Oct 20, 2026
@galenlynch

Copy link
Copy Markdown
Contributor

Yeah probably best peeled off. Thanks for doing that!

@JoeZiminski JoeZiminski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM good spot both 🎉

@alejoe91
alejoe91 merged commit ad0e0a7 into SpikeInterface:main Oct 21, 2026
11 checks passed
@h-mayorquin
h-mayorquin deleted the fix_dtype_bug branch October 21, 2026 13:38
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.

4 participants