Closed eurunuela closed 4 years ago
I've tracked this down and the problem comes from the following line:
type=lambda x: is_valid_path(parser, x)
which only exists for the melodic folder and the feat folder options.
We will have to make the defaults None
and only check if the file exists when the variable is not None
.
That should be pretty straightforward. I'm a little surprised that it raises an error when the parameters aren't actually set though..
EDIT: Never mind, I understand. It's just that the defaults are bad, not that the is_valid_path
function is.
EDIT: Never mind, I understand. It's just that the defaults are bad, not that the
is_valid_path
function is.
That's what I meant, yes. I'm surprised though. And we did not catch this because the integration error does not call the command line.
Summary
Running aroma from the command line raises a
The folder does not exist
error.Additional Detail
Command I ran:
aroma -i sub-pixar123_task-pixar_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz -tr 2 -out out -mc mc.tsv
Error I got:
Next Steps
The error is raised by the following line in àroma/cli/aroma.py`:
options = _get_parser().parse_args(argv)