3535 FixHeaderApplyTransforms as ApplyTransforms ,
3636 FixN4BiasFieldCorrection as N4BiasFieldCorrection ,
3737)
38- from ..interfaces .header import CopyXForm , ValidateImage , MatchHeader
38+ from ..interfaces .header import CopyHeader , CopyXForm , ValidateImage
3939from ..interfaces .reportlets .masks import SimpleShowMaskRPT
4040from ..utils .connections import listify
4141from ..utils .misc import pass_dummy_scans as _pass_dummy_scans
@@ -473,11 +473,11 @@ def init_enhance_and_skullstrip_bold_wf(
473473 name = "map_brainmask" ,
474474 )
475475 # 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 )
477477
478478 # fmt: off
479479 workflow .connect ([
480- (inputnode , check_hdr , [("in_file" , "reference " )]),
480+ (inputnode , fix_header , [("in_file" , "hdr_file " )]),
481481 (inputnode , init_aff , [("in_file" , "moving_image" )]),
482482 (inputnode , map_brainmask , [("in_file" , "reference_image" )]),
483483 (inputnode , norm , [("in_file" , "moving_image" )]),
@@ -486,8 +486,8 @@ def init_enhance_and_skullstrip_bold_wf(
486486 ("reverse_invert_flags" , "invert_transform_flags" ),
487487 ("reverse_transforms" , "transforms" ),
488488 ]),
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" )]),
491491 ])
492492 # fmt: on
493493 else :
0 commit comments