99from __future__ import absolute_import , division , print_function , unicode_literals
1010
1111import numpy as np
12- from numpy .testing import assert_allclose
1312
1413import spectral as spy
1514from 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