Skip to content

Commit 8dddb7a

Browse files
committed
🚚 Give logitudinal its own log
1 parent 610c191 commit 8dddb7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CPAC/pipeline/cpac_runner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
from multiprocessing import Process
2020
import os
21+
from pathlib import Path
2122
from time import strftime
2223
import warnings
2324

@@ -249,7 +250,9 @@ def run_T1w_longitudinal(sublist, cfg: Configuration, dry_run: bool = False):
249250
# sessions for each participant as value
250251
for subject_id, sub_list in subject_id_dict.items():
251252
if len(sub_list) > 1:
253+
log_dir: str
252254
_, _, log_dir = set_subject(sub_list[0], cfg)
255+
log_dir = str(Path(log_dir).parent / f"{subject_id}_longitudinal")
253256
init_loggers(subject_id, cfg, log_dir, mock=True, longitudinal=True)
254257
anat_longitudinal_wf(subject_id, sub_list, cfg, dry_run=dry_run)
255258
elif len(sub_list) == 1:

0 commit comments

Comments
 (0)