Skip to content

Commit be1e869

Browse files
authored
FIX: Use precomputed aseg within infant_recon_all (#184)
1 parent 9cb268b commit be1e869

File tree

1 file changed

+3
-1
lines changed
  • nibabies/workflows/anatomical

1 file changed

+3
-1
lines changed

nibabies/workflows/anatomical/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,12 @@ def init_infant_anat_wf(
363363
if not freesurfer:
364364
return wf
365365

366+
# if running with precomputed aseg, or JLF, pass the aseg along to FreeSurfer
367+
use_aseg = bool(precomp_aseg) or bool(segmentation_atlases)
366368
# FreeSurfer surfaces
367369
surface_recon_wf = init_infant_surface_recon_wf(
368370
age_months=age_months,
369-
use_aseg=bool(segmentation_atlases),
371+
use_aseg=use_aseg,
370372
)
371373

372374
# fmt:off

0 commit comments

Comments
 (0)