File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -1484,7 +1484,7 @@ def init_anat_template_wf(
14841484 if gradunwarp_file :
14851485 nds = [
14861486 (
1487- meta .get ('NonlinearGradientCorrection' , None )
1487+ not meta .get ('NonlinearGradientCorrection' , None )
14881488 or 'ND' in meta .get ('ImageType' , [])
14891489 or False
14901490 )
@@ -1498,9 +1498,12 @@ def init_anat_template_wf(
14981498 gradunwarp_file = None
14991499 if gradunwarp_file :
15001500 gradunwarp_ver = GradUnwarp .version ()
1501- workflow .__desc__ += f"""\
1501+ workflow .__desc__ = (
1502+ (workflow .__desc__ or '' )
1503+ + f"""\
15021504 { "Each" if num_files > 1 else "The" } { contrast } image was corrected for gradient
15031505 non-linearity with `gradunwarp` [@gradunwarp] { gradunwarp_ver } [@gradunwarp]\n """
1506+ )
15041507 gradunwarp_wf = init_gradunwarp_wf ('gradunward_T1w' )
15051508 gradunwarp_wf .inputs .inputnode .grad_file = gradunwarp_file
15061509 # fmt:off
Original file line number Diff line number Diff line change 2020BASE_LAYOUT = {
2121 '01' : {
2222 'anat' : [
23- {'run' : 1 , 'suffix' : 'T1w' },
23+ {
24+ 'run' : 1 ,
25+ 'suffix' : 'T1w' ,
26+ 'metadata' : {'ImageType' : ['ND' ]},
27+ },
2428 {'run' : 2 , 'suffix' : 'T1w' },
2529 {'suffix' : 'T2w' },
2630 ],
You can’t perform that action at this time.
0 commit comments