Skip to content

Commit 9f69ba7

Browse files
committed
minor fixes to test
1 parent 20325c6 commit 9f69ba7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

fmriprep/workflows/bold/tests/test_util.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_masking(input_fname, expected_fname):
6565
dirname, basename = os.path.split(input_fname)
6666
dsname = os.path.basename(dirname)
6767
reports_dir = Path(os.getenv('FMRIPREP_REGRESSION_REPORTS', ''))
68-
newpath = reports_dir / dirname
68+
newpath = reports_dir / dsname
6969
out_fname = fname_presuffix(basename, suffix='_masks.svg', use_ext=False,
7070
newpath=str(newpath))
7171
newpath.mkdir(parents=True, exist_ok=True)
@@ -85,11 +85,12 @@ def test_masking(input_fname, expected_fname):
8585
overlap = symmetric_overlap(expected_fname,
8686
combine_masks.result.outputs.out_file)
8787

88-
assert overlap > 0.95, input_fname
89-
9088
mask_dir = reports_dir / 'fmriprep_bold_mask' / dsname
9189
mask_dir.mkdir(parents=True, exist_ok=True)
9290
copyfile(combine_masks.result.outputs.out_file,
9391
fname_presuffix(basename, suffix='_mask',
9492
use_ext=True, newpath=str(mask_dir)),
9593
copy=True)
94+
95+
assert overlap > 0.95, input_fname
96+

0 commit comments

Comments
 (0)