NIRSTORM: Error message "Line 99: Reference to non-existent field 'samples'"

Hello there,

I had to install the most current brainstorm version, and now, "motion correction" in nirstorm crashes even using nirs_sample. Actually, this is a closed topic on the communication platform from last year. However and in contrast to the former one the error message is pointing to line 99 instead of line 98:


** Error: [process_nst_motion_correction] NIRS > Motion correction
** Line 99: Reference to non-existent field 'samples'.
**
** Call stack:
** >process_nst_motion_correction.m>Run at 99
** >process_nst_motion_correction.m at 23
** >bst_process.m>Run at 196
** >bst_process.m at 36
** >panel_process1.m>RunProcess at 151
** >panel_process1.m at 26
** >gui_brainstorm.m>CreateWindow/ProcessRun_Callback at 772
** >bst_call.m at 28
** >gui_brainstorm.m>@(h,ev)bst_call(@ProcessRun_Callback) at 296
**
**
** File: [Subject01/@rawS01_Block_FO_LH_Run01/data_0raw_S01_Block_FO_LH_Run01.mat]
**


Looking forward for any help!

Best,

Christine

Indeed, the redundant field "samples" was removed from the data structures last year.
This issue has already been dealt with last year, you probably just need to update nirstorm:

@tvincent @Zhengchen @farfy @RobertSt FYI

1 Like

Dear Francois,

thanks a lot, it works! As I see the required nirstorm version is 0.5.1.

Kind regards,
Christine

1 Like