Skip to content

Symbol not defined: SESSION -- when running Longitudinal Registration #1178

@MauricePasternak

Description

@MauricePasternak

Description

Probably related to #1103 . In short, due to the "_#" approach, the SESSION symbol can't be resolved when it is requested to do so within xASL_init_iteration -> runIteration. Error happens around this block:

% Optional diary logfile of command window
        if ~isempty(diaryFile)
            % NB. Don't overwrite diaryFile itself because it might be expanded
            % with different values in the next iteration.
            diaryFileEx = xASL_adm_ReplaceSymbols(diaryFile,x);
            diaryFileEx = fullfile(diaryFileEx);

HENK: This is not related to #1103. And the problem was probably the diaryFile name, which defaults to having sessions as well, which LongReg doesn't have. This should now be fixed. Can you try if it works for you now? Next time I hope I will fix this faster than 6 months, polease nudge me next time!

Tasks

  • Fix SESSION field in x struct by the time xASL_adm_ReplaceSymbols is called before running longitudinal registration
    HENK: THIS WAS NOT THE ISSUE, IT WAS THE WRONG DIARY FILE that incorrectly included x.SESSIONS
  • See if this can be addressed as well Error by Unrecognized field name "STRUCT" #1232 (reply in thread)
  • xASL_init_Iteration: fix diaryFile for LongReg
  • HENK: I did some revamping in the mean time: capital-insensitive (strcmpi, regexpi)
    OS path delimiter independency: fullfile instead of /

How to test

  1. Checkout develop branch.

  2. Run a dataset with multiple visits. Example given below, which successfully completed the Structural Module and is about to execute the LongReg module:

image

  1. In dataPar.json, x.modules.bRunLongReg is set to 1. Run with only the Structural module selected.

  2. Breakpoint at line 304 in xASL_init_Iteration when jobfn is @xASL_module_LongReg. (workspace attached)

LongRegBugSESSIONSymbol__xASL_init_Iteration.zip

Release notes

Fix <SESSION> symbol interpretation in longitudinal registration.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions