Repository navigation
Conversation
|
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]>
…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. |
zm711
left a comment
There was a problem hiding this comment.
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
Tuplewith optional entries,recording.dat,temp_wh.datandmatlab_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.datby default as it is used for Phy.For now, have default to delete only
matlab_filesbecause my understanding is thatrecording.datis 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_sorterlevel, so that for any sorterrecording.datcan 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_filesparameter 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).