Skip to content

More user-friendly crash message when model is not found #11

@oesteban

Description

@oesteban

What happened?

nipreps/nifreeze@f0569bc

When the model isn't present, the interface only crashes when the output mask is being "aggregated" (by nipype) and evidently it's not found where expected.

What command did you use?

n/a

What version of the software are you running?

nifreeze

How are you running this software?

Local installation ("bare-metal")

Is your data BIDS valid?

Yes

Are you reusing any previously computed results?

No

Please copy and paste any relevant log output.

FileNotFoundError                         Traceback (most recent call last)
Cell In[4], line 19
     14 if not bmask_path.exists():
     15     bmsk_results = SynthStrip(
     16         in_file=str(avg_path),
     17         use_gpu=True,
     18     ).run(cwd=str(WORKDIR))
---> 19     copy(bmsk_results.outputs.out_mask,bmask_path)

(...)

FileNotFoundError: [Errno 2] No such file or directory:
 '/home/runner/tmp/nifreezedev/ismrm25/sub-01_task-mixedgamblestask_run-03_boldref_desc-brain_mask.nii.gz'

Additional information / screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions