@@ -1233,19 +1233,6 @@ def gather_pipes(self, wf, cfg, all=False, add_incl=None, add_excl=None):
12331233
12341234 wf .connect (id_string , 'out_filename' , write_json , 'filename' )
12351235
1236- # Node to validate TR (and other scan parameters)
1237- validate_bold_header = pe .Node (
1238- Function (
1239- input_names = ["input_bold" , "RawSource_bold" ],
1240- output_names = ["output_bold" ],
1241- function = validate_outputs ,
1242- imports = [
1243- "from CPAC.pipeline.utils import find_pixdim4, update_pixdim4"
1244- ],
1245- ),
1246- name = f"validate_bold_header_{ resource_idx } _{ pipe_x } " ,
1247- )
1248-
12491236 ds = pe .Node (DataSink (), name = f'sinker_{ resource_idx } _'
12501237 f'{ pipe_x } ' )
12511238 ds .inputs .parameterization = False
@@ -1263,6 +1250,18 @@ def gather_pipes(self, wf, cfg, all=False, add_incl=None, add_excl=None):
12631250 template_desc = id_string .inputs .template_desc ,
12641251 atlas_id = atlas_id , subdir = out_dct ['subdir' ]))
12651252 if resource .endswith ("_bold" ):
1253+ # Node to validate TR (and other scan parameters)
1254+ validate_bold_header = pe .Node (
1255+ Function (
1256+ input_names = ["input_bold" , "RawSource_bold" ],
1257+ output_names = ["output_bold" ],
1258+ function = validate_outputs ,
1259+ imports = [
1260+ "from CPAC.pipeline.utils import find_pixdim4, update_pixdim4"
1261+ ],
1262+ ),
1263+ name = f"validate_bold_header_{ resource_idx } _{ pipe_x } " ,
1264+ )
12661265 raw_source , raw_out = self .get_data ("bold" )
12671266 wf .connect ([
12681267 (nii_name , validate_bold_header , [
0 commit comments