Thank you for your code and very impressive explanation,
I am a spike-sorting beginner. I have a stupid question, the example shown used a single-channel ncs file. How to handle the multiple channel data. when the recording lasts a few hours or even more.
i have an idea(stupid again),
e.g., 32 channels last 6 hours.
cut the 6 hours into 1-minute epochs?
then detect spikes for all 32 channels?
many thanks for considering my request. I am always confused about how to manage this.