Skip to content

Commit

Permalink
[REPRO] correction of bugs for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
elodiegermani1 committed Sep 21, 2023
1 parent 831b7ef commit 742f967
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions narps_open/pipelines/team_3C6G.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ def get_subject_level_analysis(self):
templates = {
'func': join(
self.directories.results_dir,
'preprocess',
'preprocessing',
'_run_id_*_subject_id_{subject_id}',
'complete_filename_{subject_id}_complete_filename.nii',
'swrrsub-{subject_id}_task-MGT_run-*_bold.nii',
),
'event': join(
self.directories.dataset_dir,
Expand All @@ -463,11 +463,10 @@ def get_subject_level_analysis(self):
),
'parameters': join(
self.directories.results_dir,
'preprocess',
'preprocessing',
'_run_id_*_subject_id_{subject_id}',
'complete_filename_{subject_id}_complete_filename.txt',
'rp_sub-{subject_id}_task-MGT_run-*_bold.txt',
)

}

# SelectFiles node - to select necessary files
Expand Down Expand Up @@ -597,7 +596,7 @@ def get_subject_level_analysis(self):
),
(
contrast_estimate,
datasink,
data_sink,
[('con_images', 'l1_analysis.@con_images'),
('spmT_images', 'l1_analysis.@spmT_images'),
('spm_mat_file', 'l1_analysis.@spm_mat_file')]
Expand Down
6 changes: 3 additions & 3 deletions tests/pipelines/test_team_3C6G.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_outputs():
pipeline.run_list = ['01']
assert len(pipeline.get_preprocessing_outputs()) == 14
assert len(pipeline.get_run_level_outputs()) == 0
#assert len(pipeline.get_subject_level_outputs()) == 7
assert len(pipeline.get_subject_level_outputs()) == 7
#assert len(pipeline.get_group_level_outputs()) == 63
#assert len(pipeline.get_hypotheses_outputs()) == 18

Expand All @@ -59,7 +59,7 @@ def test_outputs():
pipeline.run_list = ['01', '02', '03', '04']
assert len(pipeline.get_preprocessing_outputs()) == 56
assert len(pipeline.get_run_level_outputs()) == 0
#assert len(pipeline.get_subject_level_outputs()) == 7
assert len(pipeline.get_subject_level_outputs()) == 7
#assert len(pipeline.get_group_level_outputs()) == 63
#assert len(pipeline.get_hypotheses_outputs()) == 18

Expand All @@ -68,7 +68,7 @@ def test_outputs():
pipeline.run_list = ['01', '02', '03', '04']
assert len(pipeline.get_preprocessing_outputs()) == 224
assert len(pipeline.get_run_level_outputs()) == 0
#assert len(pipeline.get_subject_level_outputs()) == 28
assert len(pipeline.get_subject_level_outputs()) == 28
#assert len(pipeline.get_group_level_outputs()) == 63
#assert len(pipeline.get_hypotheses_outputs()) == 18

Expand Down

0 comments on commit 742f967

Please sign in to comment.