@@ -1168,7 +1168,7 @@ def init_template_iterator_wf(
1168
1168
run_without_submitting = True ,
1169
1169
)
1170
1170
select_tpl = pe .Node (
1171
- TemplateFlowSelect (resolution = 2 if sloppy else 1 ), name = 'select_tpl' , run_without_submitting = True
1171
+ TemplateFlowSelect (), name = 'select_tpl' , run_without_submitting = True
1172
1172
)
1173
1173
1174
1174
# fmt:off
@@ -1185,7 +1185,7 @@ def init_template_iterator_wf(
1185
1185
(spacesource , select_tpl , [
1186
1186
('space' , 'template' ),
1187
1187
('cohort' , 'cohort' ),
1188
- (('resolution' , _no_native ), 'resolution' ),
1188
+ (('resolution' , _no_native , sloppy ), 'resolution' ),
1189
1189
]),
1190
1190
(spacesource , outputnode , [
1191
1191
('space' , 'space' ),
@@ -1251,10 +1251,6 @@ def _pick_cohort(in_template):
1251
1251
return [_pick_cohort (v ) for v in in_template ]
1252
1252
1253
1253
1254
- def _fmt (in_template ):
1255
- return in_template .replace (':' , '_' )
1256
-
1257
-
1258
1254
def _empty_report (in_file = None ):
1259
1255
from pathlib import Path
1260
1256
@@ -1276,11 +1272,11 @@ def _is_native(value):
1276
1272
return value == 'native'
1277
1273
1278
1274
1279
- def _no_native (value ):
1275
+ def _no_native (value , sloppy = False ):
1280
1276
try :
1281
1277
return int (value )
1282
1278
except (TypeError , ValueError ):
1283
- return 1
1279
+ return 2 if sloppy else 1
1284
1280
1285
1281
1286
1282
def _drop_path (in_path ):
0 commit comments