Skip to content

Commit aaa532c

Browse files
authored
Merge pull request #452 from mgxd/lgr/debug
MAINT: Add message to show which files are to be used
2 parents 0b2056f + aa4c566 commit aaa532c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nibabies/workflows/base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
from __future__ import annotations
4444

4545
import os
46+
import pprint
4647
import sys
4748
import typing as ty
4849
import warnings
@@ -366,6 +367,13 @@ def init_single_subject_wf(
366367

367368
anat = reference_anat.lower() # To be used for workflow connections
368369

370+
config.loggers.workflow.info(
371+
'Collected the following data for %s:\nRaw:\n%s\n\nDerivatives:\n\n%s\n',
372+
f'sub-{subject_id}' if not session_id else f'sub-{subject_id}_ses-{session_id}',
373+
pprint.pformat(subject_data),
374+
pprint.pformat(anatomical_cache),
375+
)
376+
369377
bids_root = str(config.execution.bids_dir)
370378
output_dir = str(config.execution.nibabies_dir)
371379
omp_nthreads = config.nipype.omp_nthreads

0 commit comments

Comments
 (0)