File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 73
73
SubjectSession = tuple [str , str | None ]
74
74
75
75
76
- AUTO_T2W_MAX_AGE = 8
76
+ MCRIBS_RECOMMEND_AGE_CAP = 3
77
77
78
78
79
79
def init_nibabies_wf (subworkflows_list : list [SubjectSession ]):
@@ -332,7 +332,7 @@ def init_single_subject_wf(
332
332
# Determine some session level options here, as we should have
333
333
# all the required information
334
334
if recon_method == 'auto' :
335
- if age <= AUTO_T2W_MAX_AGE and anatomical_cache .get ('t2w_aseg' ):
335
+ if age <= MCRIBS_RECOMMEND_AGE_CAP and anatomical_cache .get ('t2w_aseg' ):
336
336
# do not force mcribs without a vetted segmentation
337
337
recon_method = 'mcribs'
338
338
elif age <= 24 :
@@ -355,7 +355,12 @@ def init_single_subject_wf(
355
355
elif (reference_anat := requested_anat ) is None : # Both available with no preference
356
356
reference_anat = (
357
357
'T2w'
358
- if any ((recon_method == 'none' and age <= AUTO_T2W_MAX_AGE , recon_method == 'mcribs' ))
358
+ if any (
359
+ (
360
+ recon_method is None and age <= MCRIBS_RECOMMEND_AGE_CAP ,
361
+ recon_method == 'mcribs' ,
362
+ )
363
+ )
359
364
else 'T1w'
360
365
)
361
366
You can’t perform that action at this time.
0 commit comments