When I launched SimMEEG from Brainstorm, I got the following error. How can I resolve this error?
** Call stack:
** >SimMEEG_GUI.m>menu_sens_type_CallBack at 5415
** >SimMEEG_GUI.m>menu_head_model_CallBack at 5299
** >SimMEEG_GUI.m at 2203
** >bst_simmeeg.m>GUI at 51
** >bst_simmeeg.m at 26
** >bst_call.m at 28
** >tree_callbacks.m>@(h,ev)bst_call(@bst_simmeeg,'GUI',iStudy) at 748
>SimMEEG_GUI.m>menu
Hello @SotomeTsubasa ,
This is known issue with the current version of SimMEEG:
opened 01:49AM - 07 Jan 26 UTC
The code below to update of the Headmodel Menu was introduced in commit: ccf25dc… 8acac0155da5d20d85199c93decad9e99.
https://github.com/branelab/SimMEEG/blob/ccf25dc8acac0155da5d20d85199c93decad9e99/update_anatomy_fields.m#L183-L196
This code however causes an error, as `h.menu_head_model.Value` is not properly indexing `h.menu_head_model.String` anymore, so an error is cause in these lines in `SimMEEG_GUI.m`:
https://github.com/branelab/SimMEEG/blob/ccf25dc8acac0155da5d20d85199c93decad9e99/SimMEEG_GUI.m#L5384
and
https://github.com/branelab/SimMEEG/blob/ccf25dc8acac0155da5d20d85199c93decad9e99/SimMEEG_GUI.m#L5415
---
A potential solution is not to update the `String` field of `h.menu_head_model`. I.e., to comment the line 16 in `update_anatomy_fields.m`
https://github.com/branelab/SimMEEG/blob/ccf25dc8acac0155da5d20d85199c93decad9e99/update_anatomy_fields.m#L196
The temporary fix if to comment the culprit line as indicated in the Issue link above.
We are in contact with the SimMEEG developer to improve the plugin and the use experience in Brainstorm.
Best,
Raymundo
Hello @Raymundo.Cassani
Thank you for your reply!