Skip to content

Commit fd45c05

Browse files
author
Shoshana Berleant
committed
fixed for real this time?
1 parent 5bf2d54 commit fd45c05

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

nipype/algorithms/tests/test_tsnr.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ class TestTSNR(unittest.TestCase):
2222
'in_file': 'tsnrinfile.nii',
2323
}
2424

25-
out_filenames = {key: os.path.abspath(filename) for key, filename in
26-
{
27-
# default output file names
28-
'detrended_file': 'detrend.nii.gz',
29-
'mean_file': 'mean.nii.gz',
30-
'stddev_file': 'stdev.nii.gz',
31-
'tsnr_file': 'tsnr.nii.gz'
32-
}.items()}
25+
out_filenames = {# default output file names
26+
'detrended_file': 'detrend.nii.gz',
27+
'mean_file': 'mean.nii.gz',
28+
'stddev_file': 'stdev.nii.gz',
29+
'tsnr_file': 'tsnr.nii.gz'
30+
}
3331

3432
def setUp(self):
3533
# setup
@@ -86,7 +84,7 @@ def test_tsnr_withpoly3(self):
8684
})
8785

8886
def assert_expected_outputs_poly(self, tsnrresult, hash_dict):
89-
assert_equal(os.path.abspath(tsnrresult.outputs.detrended_file),
87+
assert_equal(os.path.basename(tsnrresult.outputs.detrended_file),
9088
self.out_filenames['detrended_file'])
9189
self.assert_expected_outputs(tsnrresult, hash_dict)
9290

@@ -95,11 +93,11 @@ def assert_expected_outputs(self, tsnrresult, hash_dict):
9593
self.assert_unchanged(hash_dict)
9694

9795
def assert_default_outputs(self, outputs):
98-
assert_equal(os.path.abspath(outputs.mean_file),
96+
assert_equal(os.path.basename(outputs.mean_file),
9997
self.out_filenames['mean_file'])
100-
assert_equal(os.path.abspath(outputs.stddev_file),
98+
assert_equal(os.path.basename(outputs.stddev_file),
10199
self.out_filenames['stddev_file'])
102-
assert_equal(os.path.abspath(outputs.tsnr_file),
100+
assert_equal(os.path.basename(outputs.tsnr_file),
103101
self.out_filenames['tsnr_file'])
104102

105103
def assert_unchanged(self, expected_hashes):

0 commit comments

Comments
 (0)