Skip to content

Commit 6cda666

Browse files
authored
Merge pull request #1 from GatorSense/fix_checking_error
this line caused errors when actual input was given for initEM
2 parents 3196045 + 2a605cb commit 6cda666

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SPICE.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def SPICE(inputData, parameters):
9898
M = parameters.M
9999
X = inputData
100100

101-
if parameters.initEM == None:
101+
if parameters.initEM is None:
102102
# Find Random Initial Endmembers
103103
randIndices = np.random.permutation(inputData.shape[1])
104104
randIndices = randIndices[0:parameters.M]
@@ -245,4 +245,4 @@ def unmix2(data, endmembers, gammaConst=0, P=None):
245245

246246
return P2
247247

248-
248+

0 commit comments

Comments
 (0)