Hi all, this PR by @jones-michael-s and this (a5baa45) commit has broken aa for me.
Particularly, if a session doesn't exist for a subject, I was marking it using an empty array and that was dependent on the current session index.
https://github.com/automaticanalysis/automaticanalysis/blob/0c902d95f49bd23a37c7cda77960b6fa035cd1e6/aa_modules/aamod_epifromnifti.m#L19C1-L25C31
However, since the new code uses the first index and if a subject misses the very first session but has others available, I get an error because series{1} doesn't satisfy any of those conditions (whereas series{sess}) did before.
Hi all, this PR by @jones-michael-s and this (a5baa45) commit has broken aa for me.
Particularly, if a session doesn't exist for a subject, I was marking it using an empty array and that was dependent on the current session index.
https://github.com/automaticanalysis/automaticanalysis/blob/0c902d95f49bd23a37c7cda77960b6fa035cd1e6/aa_modules/aamod_epifromnifti.m#L19C1-L25C31
However, since the new code uses the first index and if a subject misses the very first session but has others available, I get an error because series{1} doesn't satisfy any of those conditions (whereas series{sess}) did before.