Skip to content

πŸ› Spurious condition: (ref_resolution β‰Ÿ resolution_for_anat) β‰  is_monkeyΒ #2175

Open
@shnizzedy

Description

@shnizzedy

Related problem

This conditional block

if (
cfg.registration_workflows["anatomical_registration"]["registration"][
"FSL-FNIRT"
]["ref_resolution"]
== cfg.registration_workflows["anatomical_registration"]["resolution_for_anat"]
):
node, out = strat_pool.get_data("T1w-brain-template")
wf.connect(node, out, fsl, "inputspec.reference_brain")
node, out = strat_pool.get_data("T1w-template")
wf.connect(node, out, fsl, "inputspec.reference_head")
else:
node, out = strat_pool.get_data("FNIRT-T1w-brain-template")
wf.connect(node, out, fsl, "inputspec.reference_brain")
node, out = strat_pool.get_data("FNIRT-T1w-template")
wf.connect(node, out, fsl, "inputspec.reference_head")
seems to be conditioned on something spurious (
cfg.registration_workflows["anatomical_registration"]["registration"][
"FSL-FNIRT"
]["ref_resolution"]
== cfg.registration_workflows["anatomical_registration"]["resolution_for_anat"]
) to what the condition should actually be (
# Template to be used during registration.
# It is for monkey pipeline specifically.
)

Proposed feature

Update the condition to reflect the actual condition we should be checking, rather than a condition that probably corresponds to that condition.

Acceptance criteria

  • It's obvious which condition will be selected and why.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions