Skip to content

Commit

Permalink
fix for input type in dseg qc (#226)
Browse files Browse the repository at this point in the history
* fix wrong input type in dseg qc

A return statement in the `get_bg_img_for_subfield_qc()` function had an
extra set of parentheses around the `bids()` call, which was making it
return a tuple instead of a string. This fixes that, and removes the
other fix that fixed this issue downstream.

---------

Co-authored-by: Jordan DeKraker - B. Bernhardt Lab <[email protected]>
Co-authored-by: Ali Khan <[email protected]>
  • Loading branch information
3 people authored Mar 5, 2023
1 parent c29b03a commit 7457100
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions hippunfold/workflow/rules/qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,13 @@ def get_bg_img_for_subfield_qc(wildcards):
)
elif config["modality"] == "cropseg":
# blank image as bg
return (
bids(
root=work,
datatype="warps",
suffix="cropref.nii.gz",
space="{space}",
hemi="{hemi}",
**config["subj_wildcards"],
),
return bids(
root=work,
datatype="warps",
suffix="cropref.nii.gz",
space="{space}",
hemi="{hemi}",
**config["subj_wildcards"],
)

elif config["modality"][:3] == "seg":
Expand Down

0 comments on commit 7457100

Please sign in to comment.