35
35
FixHeaderApplyTransforms as ApplyTransforms ,
36
36
FixN4BiasFieldCorrection as N4BiasFieldCorrection ,
37
37
)
38
- from ..interfaces .header import CopyXForm , ValidateImage , MatchHeader
38
+ from ..interfaces .header import CopyHeader , CopyXForm , ValidateImage
39
39
from ..interfaces .reportlets .masks import SimpleShowMaskRPT
40
40
from ..utils .connections import listify
41
41
from ..utils .misc import pass_dummy_scans as _pass_dummy_scans
@@ -473,11 +473,11 @@ def init_enhance_and_skullstrip_bold_wf(
473
473
name = "map_brainmask" ,
474
474
)
475
475
# Ensure mask's header matches reference's
476
- check_hdr = pe .Node (MatchHeader (), name = "check_hdr " , run_without_submitting = True )
476
+ fix_header = pe .Node (CopyHeader (), name = "fix_header " , run_without_submitting = True )
477
477
478
478
# fmt: off
479
479
workflow .connect ([
480
- (inputnode , check_hdr , [("in_file" , "reference " )]),
480
+ (inputnode , fix_header , [("in_file" , "hdr_file " )]),
481
481
(inputnode , init_aff , [("in_file" , "moving_image" )]),
482
482
(inputnode , map_brainmask , [("in_file" , "reference_image" )]),
483
483
(inputnode , norm , [("in_file" , "moving_image" )]),
@@ -486,8 +486,8 @@ def init_enhance_and_skullstrip_bold_wf(
486
486
("reverse_invert_flags" , "invert_transform_flags" ),
487
487
("reverse_transforms" , "transforms" ),
488
488
]),
489
- (map_brainmask , check_hdr , [("output_image" , "in_file" )]),
490
- (check_hdr , n4_correct , [("out_file" , "weight_image" )]),
489
+ (map_brainmask , fix_header , [("output_image" , "in_file" )]),
490
+ (fix_header , n4_correct , [("out_file" , "weight_image" )]),
491
491
])
492
492
# fmt: on
493
493
else :
0 commit comments