Error at Creating Spike Events due to update in `db_template('event')`

Hello brainstorm community!

While doing spike sorting, I get a new error after one of the 2026 updates (I don’t know which). Before, WaveClaus would run on raw data with no problems, regardless of the channel type. Now, in my datasets, even ones that would run perfectly before (2025), I’m not able to run any spike sorting scripts. I tried changing channel names and channel types (from the raw data), but same fate.

***************************************************************************
** Error: [process_spikesorting_waveclus] Electrophysiology > Unsupervised Spike Sorting > WaveClus
** Line 636: Subscripted assignment between dissimilar structures.
**
** Call stack:
** >panel_spikes.m>CreateSpikeEvents at 636
** >panel_spikes.m at 27
** >process_spikesorting_waveclus.m>SaveBrainstormEvents at 277
** >process_spikesorting_waveclus.m>Run at 235
** >process_spikesorting_waveclus.m at 33
** >bst_process.m>Run at 203
** >bst_process.m at 38
** >panel_process1.m>RunProcess at 131
** >panel_process1.m at 26
** >gui_brainstorm.m>CreateWindow/ProcessRun_Callback at 781
** >bst_call.m at 28
** >gui_brainstorm.m>@(h,ev)bst_call(@ProcessRun_Callback) at 301
**
**
** File: [Redacted…]/@rawsession_002_tetrodes/data_0raw_session_002_tetrodes.mat
**
***************************************************************************

Thank you in advance!

Best,

Raul

Hi @raulca,

Thanks for the report. This bug was introduced with the added support for HED tags:

It is now fixed in Commit: 4fc0be3
Please update your Brainstorm instance to 20-Feb-2026

1 Like

Thank you so much Raymundo!