Skip to content

Commit 601d2df

Browse files
committed
FIX: Correct targets, complete workflow arguments
1 parent c74cd68 commit 601d2df

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ jobs:
248248
docker run -ti --rm=false \
249249
-v /tmp/data:/tmp/data \
250250
-e FMRIPREP_REGRESSION_SOURCE=/tmp/data/fmriprep_bold_truncated \
251-
-e FMRIPREP_REGRESSION_TARGET=/tmp/data/fmriprep_bold_mask \
251+
-e FMRIPREP_REGRESSION_TARGETS=/tmp/data/fmriprep_bold_mask \
252252
--entrypoint="py.test" poldracklab/fmriprep:latest \
253253
/root/src/fmriprep/ --doctest-modules --ignore=docs --ignore=setup.py
254254
- run:

fmriprep/workflows/bold/tests/test_util.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ def symmetric_overlap(img1, img2):
2525
(os.path.join(os.getenv('FMRIPREP_REGRESSION_SOURCE', ''),
2626
base_fname),
2727
fname_presuffix(base_fname, suffix='_mask', use_ext=True,
28-
newpath=os.getenv('FMRIPREP_REGRESSION_TARGETS', '')))
28+
newpath=os.path.join(
29+
os.getenv('FMRIPREP_REGRESSION_TARGETS', ''),
30+
os.path.dirname(base_fname))))
2931
for base_fname in (
3032
'ds000116/sub-12_task-visualoddballwithbuttonresponsetotargetstimuli_run-02_bold.nii.gz',
3133
# 'ds000133/sub-06_ses-post_task-rest_run-01_bold.nii.gz',
@@ -43,9 +45,9 @@ def symmetric_overlap(img1, img2):
4345
)
4446
])
4547
def test_masking(input_fname, expected_fname):
46-
bold_reference_wf = init_bold_reference_wf(enhance_t2=True)
48+
bold_reference_wf = init_bold_reference_wf(omp_nthreads=1, enhance_t2=True)
4749
bold_reference_wf.inputs.inputnode.bold_file = input_fname
48-
res = bold_reference_wf.run()
50+
res = bold_reference_wf.run(plugin='MultiProc')
4951

5052
combine_masks = [node for node in res.nodes if node.name.endswith('combine_masks')][0]
5153
overlap = symmetric_overlap(expected_fname,

0 commit comments

Comments
 (0)