Error Opening GEDAI Denoising Result

Dear Brainstorm experts,

We're currently using GEDAI as a plugin to denoise our EEG data in Brainstorm, and it works really well most of the time. However, the plugin could not process EEG data contained non-EEG channels. After further investigation, we discovered that they fixed this issue in GEDAI version 1.5, but Brainstorm can not fetch this update (the newest version of GEDAI in brainstorm is 3b613b8c, which is not v1.5 on github).

After manually install GEDAI v1.5 in Brainstorm, the denoising process runs perfectly, and we get the result on a pop-up window.

However, when double-clicking the result in Brainstorm, we get an error:

** Error: Line 942: error using double
** could not convert from struct to double.
**
** Call stack:
** >bst_memory.m>LoadRecordingsMatrix at 942
** >bst_memory.m>GetRecordingsValues at 2123
** >bst_memory.m at 73
** >figure_timeseries.m>GetFigureData at 2768
** >figure_timeseries.m>PlotFigure at 2853
** >figure_timeseries.m at 42
** >view_timeseries.m at 274
** >tree_callbacks.m at 274
** >bst_call.m at 28
** >panel_protocols.m>CreatePanel/protocolTreeClicked_Callback at 125
** >bst_call.m at 28
** >panel_protocols.m>@(h,ev)bst_call(@protocolTreeClicked_Callback,h,ev) at 75
**

These lines in bst_memory.m are:

if ~isempty(DataMat.F)

         GlobalData.DataSet(iDS).Measures.F = double(DataMat.F);

end

In correct situation, DataMat.F should be a matrix in the shape of channel number × time points. We discovered that DataMat.F is a struct, and contains fields as follows:

There seems to be a small problem when unpacking results returned by GEDAI.

my environment:

  • Brainstorm version: 16-Mar-2026 (latest release at the posting time)

  • MATLAB version: R2024b

  • Operating System: Windows 11

  • GEDAI version: v1.5 (manual installation, latest release at the posting time)

I would greatly appreciate it if you could look into this issue. I'm happy to provide additional details if needed.

Best regards,

Jiameng

Hello Jiameng,

It is not that Brainstorm cannot fetch GEDAI at v1.5, it is that in the Brainstorm team we have decided to pulls GEDAI at 3b613b8c (27-Jan-2026), which is the latest version of GEDAI that we have fully tested.

As you can see in the GEDAI repository, development is very active even in the main branch, and sometime additions are not fully tested. This is the reason for the Brainstorm team to set to GEDAI version that has been fully tested.

GEDAI version v.15 (commit 68375b3) is dated 16-Feb-2026. The bug you are described is not on "unpacking results returned by GEDAI", is that GEDAI is not returning data as expected. This issue was fixed on the GEDAI repo in 17-Feb-2026 link. However, the latest release (v1.5) of GEDAI is before that commit.

FYI, this issue with GEDAI was already reported in the forum:

Dear Raymundo,

Thank you very much for your detailed explanation!

Best regards,
Jiameng