Renaming subject fails

Hello,

I am trying to rename a subject that was created with an old version of Brainstorm (2018, i think). I imported the subject in my new database (import subject as zip) and reloaded the database. But when I try to rename the subject to fit our new naming scheme, I get the following error:

Error: Line 75: Unrecognized field name "Fibers".

Call stack:
>db_rename_subject.m at 75
>node_rename.m at 74
>bst_call.m at 28
>panel_protocols.m>CreatePanel/protocolTreeEditingStopped_Callback at 297

Edit: i deleted and regenerated the file /anat/brainstormsubject.mat but i am now getting this error:

Error: Line 112: Unrecognized field name "Channel".

Call stack:
>db_rename_condition.m at 112
>db_rename_subject.m at 94
>node_rename.m at 74
>bst_call.m at 28
>panel_protocols.m>CreatePanel/protocolTreeEditingStopped_Callback at 297

Edit: i rebooted my computer and it seems to be doing something now. Btw would it be possible to add some progress bar on those operation ?

This is kind of frustrating to not know if the operation is about to finish or will take another 3 hours (or even to know if brainstorm is even doing anything in the background)

Edit 2: the renaming seems to have worked. (the progress bard would stil be usefull :))

Thanks for the detailed report.

Indeed, it fails as importing subjects from different db versions is not implemented.
(Nor it shows a proper error message)

Once potential way to do so would be to:

  1. Import that old Subject in the newer Brainstorm as its own Protocol
    File > Load protocol > Load from zip file.
    Then the database files will be updated.

  2. Export the Subject from the newer Brainstorm
    Right-click > File > Export subject

  3. Import the exported Subject from step 2
    File > Load protocol > Import subject from zip file.

Removing /anat/brainstormsubject.mat is not recommended approach as you will be deleting information such as the default surfaces.

Agree, this is now in the queue of requests

1 Like