Open guidomeijer opened 10 months ago
@guidomeijer
Can you try to pre-cache the highpass-spatial filtered recording to see if that fixes the motion correction?
Just add:
rec_destriped = rec_destriped.save(folder=destriped", n_jobs=...)
before the motion correction step. If that also hangs, then it must be something with the highpass spatial filter parallelization performance
Yes, now it hangs at the destriping step.
Can you try to run it with n_jobs=1
? Then we know is the parallelization of it
Hey @guidomeijer! hope things are good. I had a go and replicating now from main branch with the below:
import spikeinterface.full as si
from spikeinterface.postprocessing.amplitude_scalings import _plot_collisions, _plot_one_collision
# Generate curated sorting
if __name__ == '__main__': # I am on windows
recording, _ = si.generate_ground_truth_recording(durations=[100], num_channels=384)
recording = si.bandpass_filter(recording)
recording = si.highpass_spatial_filter(recording)
recording = si.correct_motion(recording, preset='nonrigid_accurate', n_jobs=-1, progress_bar=True)
I wonder if you still see this error on main branch, either with the MRE above or your original dataset?
When I apply a high pass spatial filter I can't do motion correction afterwards. The script just hangs during motion correction without providing any feedback, error or progress bar. When I substitute the high pass spatial filter for a common reference the motion correction does work. Here is my code:
To check whether something strange is happening during the high pass spatial filter I made some plots but they look fine to me:
I'd like to use the spatial filter instead of the common reference so any help on how to get the motion correction to work with the spatial filter would be appreciated!