File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1484,7 +1484,7 @@ def init_anat_template_wf(
1484
1484
if gradunwarp_file :
1485
1485
nds = [
1486
1486
(
1487
- meta .get ('NonlinearGradientCorrection' , None )
1487
+ not meta .get ('NonlinearGradientCorrection' , None )
1488
1488
or 'ND' in meta .get ('ImageType' , [])
1489
1489
or False
1490
1490
)
@@ -1498,7 +1498,7 @@ def init_anat_template_wf(
1498
1498
gradunwarp_file = None
1499
1499
if gradunwarp_file :
1500
1500
gradunwarp_ver = GradUnwarp .version ()
1501
- workflow .__desc__ += f"""\
1501
+ workflow .__desc__ = ( workflow . __desc__ or "" ) + f"""\
1502
1502
{ "Each" if num_files > 1 else "The" } { contrast } image was corrected for gradient
1503
1503
non-linearity with `gradunwarp` [@gradunwarp] { gradunwarp_ver } [@gradunwarp]\n """
1504
1504
gradunwarp_wf = init_gradunwarp_wf ('gradunward_T1w' )
Original file line number Diff line number Diff line change 20
20
BASE_LAYOUT = {
21
21
'01' : {
22
22
'anat' : [
23
- {'run' : 1 , 'suffix' : 'T1w' },
23
+ {
24
+ 'run' : 1 ,
25
+ 'suffix' : 'T1w' ,
26
+ 'metadata' : {'ImageType' : ['ND' ]},
27
+ },
24
28
{'run' : 2 , 'suffix' : 'T1w' },
25
29
{'suffix' : 'T2w' },
26
30
],
You can’t perform that action at this time.
0 commit comments