Skip to content

Commit b332986

Browse files
[style] renamed import
1 parent 209cc71 commit b332986

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_rdms_combine.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"""
33
# pylint: disable=import-outside-toplevel, no-self-use
44
from unittest import TestCase
5-
from numpy import array, nan, isnan, mean, abs, diff
5+
from numpy import array, nan, isnan, mean, abs as _abs, diff
66
from numpy.testing import assert_almost_equal, assert_array_equal
77
from scipy.stats import pearsonr
88

@@ -84,12 +84,12 @@ def test_rescale_threshold(self):
8484
## high threshold, fewer iterations, substantial difference remaining
8585
rescaled_rdms = rescale(partial_rdms, method='simple', threshold=10)
8686
common_pair = rescaled_rdms.dissimilarities[:, 3]
87-
rel_diff = abs(diff(common_pair)/mean(common_pair))
87+
rel_diff = _abs(diff(common_pair)/mean(common_pair))
8888
self.assertGreater(rel_diff[0], 0.1)
8989
## low threshold, more iterations, difference small
9090
rescaled_rdms = rescale(partial_rdms, method='simple', threshold=0.00001)
9191
common_pair = rescaled_rdms.dissimilarities[:, 3]
92-
rel_diff = abs(diff(common_pair)/mean(common_pair))
92+
rel_diff = _abs(diff(common_pair)/mean(common_pair))
9393
self.assertLess(rel_diff[0], 0.01)
9494

9595
def test_mean_no_weights(self):

0 commit comments

Comments
 (0)