Skip to content

make getAnatFilename error message more informative #196

@Remi-Gau

Description

@Remi-Gau

Describe your problem in detail

My anat file is in the "session-003" but I forgot to change the default "opt.anatReference.session" to "3".

If there is only one anat T1w file but not in the default session folder (first session) or the one asked the error message is very unhelpful.

Describe what outcome you expected

The error message to tell me where the T1w files are.

Error message

Index exceeds matrix dimensions.

Error in getAnatFilename (line 42)
  anat = anat{1};

Error in setBatchSelectAnat (line 31)
  [anatImage, anatDataDir] = getAnatFilename(BIDS, subID, opt);

Error in bidsSpatialPrepro (line 62)
      matlabbatch = setBatchSelectAnat(matlabbatch, BIDS, opt, subID);

Error in preprocessRetinotopy (line 20)
bidsSpatialPrepro(opt)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions