Skip to content

Should just skip a subject without anatomical #44

@yarikoptic

Description

@yarikoptic

Also relates to

as indeed that flag did not select only the subject I specified, but went through all and then crashed with

Traceback (most recent call last):
  File "/opt/dsst-defacing-pipeline/run.py", line 192, in <module>
    main()
  File "/opt/dsst-defacing-pipeline/run.py", line 132, in main
    missing_refacer_out = deface.deface_primary_scan(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/dsst-defacing-pipeline/deface.py", line 218, in deface_primary_scan
    primary_t1 = mapping_dict[subj_id][sess_id]['primary_t1']
                 ~~~~~~~~~~~~^^^^^^^^^
KeyError: 'sub-0046'

as that subject is missing ses-01 (but has 02-04) which usually contained the anat/ (relevant here also #42) .

I think pipeline should not crash, since such inconsistency is not per se violation of BIDS etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions