Skip to content

Commit f8e09b1

Browse files
committed
🐛 Set subject ID for longitudinal workflow
1 parent 12daee2 commit f8e09b1

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

CPAC/longitudinal_pipeline/longitudinal_workflow.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
create_wf_calculate_ants_warp,
3939
)
4040
from CPAC.registration.registration import apply_transform
41+
from CPAC.utils.configuration.configuration import Configuration
4142
from CPAC.utils.datasource import (
4243
resolve_resolution,
4344
)
@@ -380,24 +381,25 @@ def warp_longitudinal_seg_to_T1w(wf, cfg, strat_pool, pipe_num, opt=None):
380381
return (wf, outputs)
381382

382383

383-
def anat_longitudinal_wf(subject_id, sub_list, config):
384+
def anat_longitudinal_wf(
385+
subject_id: str, sub_list: list[dict], config: Configuration
386+
) -> None:
384387
"""
388+
Create and run anatomical longitudinal workflow(s).
389+
385390
Parameters
386391
----------
387-
subject_id : str
392+
subject_id
388393
the id of the subject
389-
sub_list : list of dict
394+
sub_list
390395
this is a list of sessions for one subject and each session if the same dictionary as the one given to
391396
prep_workflow
392-
config : configuration
397+
config
393398
a configuration object containing the information of the pipeline config. (Same as for prep_workflow)
394-
395-
Returns
396-
-------
397-
None
398399
"""
399-
# list of lists for every strategy
400-
session_id_list = []
400+
config["subject_id"] = subject_id
401+
session_id_list: list[list] = []
402+
"""List of lists for every strategy"""
401403
session_wfs = {}
402404

403405
cpac_dirs = []

0 commit comments

Comments
 (0)