Skip to content

Commit 0692832

Browse files
committed
Loosen remaining SMACC unit test tolerance.
1 parent c3b9a0b commit 0692832

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spectral/tests/dimensionality.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from __future__ import absolute_import, division, print_function, unicode_literals
1010

1111
import numpy as np
12-
from numpy.testing import assert_allclose
1312

1413
import spectral as spy
1514
from spectral.tests.spytest import SpyTest, test_method
@@ -88,7 +87,7 @@ def test_smacc_runs(self):
8887
S, F, R = spy.smacc(scaled_data)
8988
data_shape = scaled_data.shape
9089
H = scaled_data.reshape(data_shape[0] * data_shape[1], data_shape[2])
91-
assert_allclose(np.matmul(F, S) + R, H)
90+
assert(np.allclose(np.matmul(F, S) + R, H))
9291
assert(np.min(F) == 0.0)
9392
assert(len(S.shape) == 2 and S.shape[0] == 9 and S.shape[1] == 220)
9493

@@ -99,7 +98,7 @@ def test_smacc_min_endmembers(self):
9998
S, F, R = spy.smacc(scaled_data, 10)
10099
data_shape = scaled_data.shape
101100
H = scaled_data.reshape(data_shape[0] * data_shape[1], data_shape[2])
102-
assert_allclose(np.matmul(F, S) + R, H)
101+
assert(np.allclose(np.matmul(F, S) + R, H))
103102
assert(np.min(F) == 0.0)
104103
assert(len(S.shape) == 2 and S.shape[0] == 10 and S.shape[1] == 220)
105104

0 commit comments

Comments
 (0)