Skip to content

Commit

Permalink
Update calmla.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ytarazona committed Jul 27, 2023
1 parent 043ec5f commit 118186c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scikeo/calmla.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, endmembers):

for i in np.arange(self.endm.shape[1]):

if all(self.endm.iloc[:,int(i)] < 100) & all(self.endm.iloc[:,int(i)] >= 1): indx = i; break
if all(self.endm.iloc[:,int(i)] < 100) & all(self.endm.iloc[:,int(i)] >= 0): indx = i; break

# if the file is .dbf
elif isinstance(self.endm, (DBF)): # isinstance() function With Inheritance
Expand All @@ -56,7 +56,7 @@ def __init__(self, endmembers):

for i in np.arange(self.endm.shape[1]):

if all(self.endm.iloc[:,int(i)] < 100) & all(self.endm.iloc[:,int(i)] >= 1): indx = i; break
if all(self.endm.iloc[:,int(i)] < 100) & all(self.endm.iloc[:,int(i)] >= 0): indx = i; break

else:
raise TypeError('"endm" must be .csv (pandas.core.frame.DataFrame).')
Expand Down

0 comments on commit 118186c

Please sign in to comment.