Skip to content

Commit 3b7120f

Browse files
committed
dbg: additional debug for edge case
1 parent 60ab9fc commit 3b7120f

File tree

1 file changed

+16
-2
lines changed
  • nibabies/workflows/anatomical

1 file changed

+16
-2
lines changed

nibabies/workflows/anatomical/fit.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,14 @@ def init_infant_anat_fit_wf(
10061006
(register_template_wf, concat_anat2std_buffer, [('outputnode.anat2std_xfm', 'in2')]),
10071007
]) # fmt:skip
10081008

1009-
if concat_xfms:
1009+
if concat_xfms and intermediate is None:
1010+
LOGGER.error(
1011+
'Intermediate is not set - skipping concatenation workflow.' ' Spaces: %s',
1012+
' Intermediate targets: %s',
1013+
spaces.get_spaces(nonstandard=False, dim=(3,)),
1014+
intermediate_targets,
1015+
)
1016+
elif concat_xfms:
10101017
LOGGER.info(f'ANAT Stage 5b: Concatenating normalization for {concat_xfms}')
10111018

10121019
select_infant_mni = pe.Node(
@@ -1940,7 +1947,14 @@ def init_infant_single_anat_fit_wf(
19401947
(register_template_wf, concat_anat2std_buffer, [('outputnode.anat2std_xfm', 'in2')]),
19411948
]) # fmt:skip
19421949

1943-
if concat_xfms:
1950+
if concat_xfms and intermediate is None:
1951+
LOGGER.error(
1952+
'Intermediate is not set - skipping concatenation workflow.\n' 'Spaces: %s\n',
1953+
'Intermediate targets: %s',
1954+
spaces.get_spaces(nonstandard=False, dim=(3,)),
1955+
intermediate_targets,
1956+
)
1957+
elif concat_xfms:
19441958
LOGGER.info(f'ANAT Stage 5b: Concatenating normalization for {concat_xfms}')
19451959

19461960
select_infant_mni = pe.Node(

0 commit comments

Comments
 (0)