-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the signature on kilosort's delete intermediate files parameters. #1908
Change the signature on kilosort's delete intermediate files parameters. #1908
Conversation
for more information, see https://pre-commit.ci
Hi Joe. |
We can rebuild the docker images, but it would be great if we can make this bakward-compatible :) |
That's a good point about backward compatibility! If the below makes sense, I could rework this PR to:
with backward compatibility considerations, I think the key thing is really to set the delete I see that for other sorters, in some cases the binary is re-written. From searching |
Thanks @JoeZiminski I think your proposed solution is perfect. Note that passing a tuple for @samuelgarcia note that the docker images wouldn't need to be rebuilt, since we're only touching the Python wrappers. |
Thanks @alejoe91 @samuelgarcia I have made the discussed changes, let me know if anything further is required. Are there are quick sorter-tests where testing these options could be slotted in? |
Just as an FYI and to transfer our convo over from #1896. I was just helping someone on the Phy issue tracker (running KS2 + Phy outside of SI). And they tried both the raw file edited: bold to make clear I haven't tested |
That's a good point. While spatial whitening is needed by Kilosort, it kind of messes up the spatial structure of the waveforms, making them quite less interpretable. I also prefer looking at "real" signals :) |
Co-authored-by: Alessio Buccino <[email protected]>
Co-authored-by: Alessio Buccino <[email protected]>
for more information, see https://pre-commit.ci
…om:JoeZiminski/spikeinterface into change_kilosort_tmp_file_cleanup_signature
Hey @zm711, @alejoe91, @samuelgarcia do you think this is good to go? happy to add anything required on the testing end. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple typo fixes in the docstrings for me @JoeZiminski,
but I'll let @alejoe91 and @samuelgarcia let you know about any tests they want added.
Co-authored-by: Zach McKenzie <[email protected]>
Co-authored-by: Zach McKenzie <[email protected]>
Co-authored-by: Zach McKenzie <[email protected]>
thanks @zm711 ! |
Looking great @JoeZiminski Merging :) |
This PR extends cleanup after kilosort sorting, closes #1896.
The signature for deleting intermediate files is changed slightly and is now a
Tuple
with optional entries,recording.dat
,temp_wh.dat
andmatlab_files
. The reason for this extension is to give a little more granularity over the selection of what to delete, and to not deletetemp_wh.dat
by default as it is used for Phy.For now, have default to delete only
matlab_files
because my understanding is thatrecording.dat
is not deleted for other sorters and so this might be confusing if the behaviour is different across sorters.Do you think it is worth pushing up this functionality to the
run_sorter
level, so that for any sorterrecording.dat
can be deleted (in the cases it is created). The issue with that approach would be that some intermerdiate files are sorter-specific. Alternatively, each sorter has it's owndelete_intermediate_files
parameter that takes keywords specific to it's output, and these can be accessed withrun_sorter
's kwargs? (in which case, happy to extend this functionality to other sorters, I am just not very familiar with the intermediate files they all create).