Waveclus int_spikes.m error when par.detection='both' and no spikes are detected

Hi, since an older version of waveclus is incorporated in the GUI, when choosing to detect both positive and negative spike waveforms it produces this error when encountering a channel with no spikes.
I found this issue in waveclus github and it seems that it has been corrected since 2018

Is there an option that you update the waveclus version used in your GUI?

Thank you for your very helpful software


** Error: [process_spikesorting_waveclus] Electrophysiology > Unsupervised Spike Sorting > WaveClus
** Line 30: Unrecognized function or variable 'intspikes'.
**
** Call stack:
** >int_spikes.m at 30
** >amp_detect.m at 123
** >Get_spikes.m>get_spikes_single at 180
** >Get_spikes.m at 130
** >process_spikesorting_waveclus.m>Run at 177
** >process_spikesorting_waveclus.m at 33
** >bst_process.m>Run at 229
** >bst_process.m at 36
** >panel_process1.m>RunProcess at 151
** >panel_process1.m at 26
** >gui_brainstorm.m>CreateWindow/ProcessRun_Callback at 785
** >bst_call.m at 28
** >gui_brainstorm.m>@(h,ev)bst_call(@ProcessRun_Callback) at 309
**
**

Thank you for pointing this out.
@mpompolas?

Sorry just saw this.
The notifications from the forum end up in my spam for some reason.

Should be fixed after the following changes are merged:

After the merge is done by Francois:

  1. Delete the folder: ~/.brainstorm/waveclus
  2. Run the WaveClus spike-sorter again.

The latest version of WaveClus will automatically be installed and executed.

PR merged!