Skip to content

dredge fixes - #4889

Merged
cwindolf merged 19 commits into
SpikeInterface:mainfrom
cwindolf:dredge-ap-chunked-updates
Oct 23, 2026
Merged

cwindolf merged 19 commits into
SpikeInterface:mainfrom
cwindolf:dredge-ap-chunked-updates

Conversation

@cwindolf

Copy link
Copy Markdown
Collaborator

Would close #4829

This has two groups of changes:

  • Fixes related to the online algorithm: most importantly, a time horizon issue which meant that the current algorithm was processing chunks across boundaries strangely. The first few commits here break these changes up into logical groups.
  • Other dredge fixes: biggest one here is adding a log transform to the histogram. Meant to do that a long time ago. Also affects full-mode users, but it is helpful! Should have done this before the benchmark papers @_@

@cwindolf cwindolf added motion correction Questions related to motion correction chronic labels Oct 21, 2026
@alejoe91

alejoe91 commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Thanks @cwindolf

This seems to close the gap with the differences we saw between the IBL and SI results:

IBL internal results

image

SI: main

image

SI: this PR

image

SI: this PR + YASS denoising from #4706

image

So it seems that the main effect is due to the updated dredge implementation, with minimal changes due to denoising!

@cwindolf

Copy link
Copy Markdown
Collaborator Author

@alejoe91 thanks for talking! added a couple of commits based on that (and some other fixes). should be ready to go!

@alejoe91 alejoe91 left a comment

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.

LGTM! @chrishalcrow want to take a fina look?

Comment thread src/spikeinterface/preprocessing/motion.py
Comment thread src/spikeinterface/sortingcomponents/motion/dredge.py Outdated
Comment thread src/spikeinterface/sortingcomponents/motion/dredge.py Outdated
Comment thread src/spikeinterface/sortingcomponents/motion/motion_utils.py
@cwindolf

Copy link
Copy Markdown
Collaborator Author

Thanks @chrishalcrow @alejoe91! Added a couple of commits, should I merge?

@cwindolf
cwindolf merged commit d00edb7 into SpikeInterface:main Oct 23, 2026
11 checks passed
@alejoe91 alejoe91 mentioned this pull request Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chronic motion correction Questions related to motion correction

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DREDge differences (parameters, online mode, math)

3 participants