Skip to content

Commit

Permalink
OWKmeans: Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlin-policar committed Feb 23, 2018
1 parent a7e4934 commit 9020874
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Orange/widgets/unsupervised/owkmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,17 +395,14 @@ def commit(self):

QTimer.singleShot(100, self.adjustSize)

def invalidate(self, force=False):
def invalidate(self):
self.cancel()
self.Error.clear()
self.Warning.clear()
self.clusterings = {}
self.table_model.clear_scores()

if force:
self.unconditional_commit()
else:
self.commit()
self.commit()

def update_results(self):
scores = [
Expand Down Expand Up @@ -437,7 +434,7 @@ def send_data(self):
k = self.k

km = self.clusterings.get(k)
if not self.data or km is None or isinstance(km, str):
if self.data is None or km is None or isinstance(km, str):
self.Outputs.annotated_data.send(None)
self.Outputs.centroids.send(None)
return
Expand Down

0 comments on commit 9020874

Please sign in to comment.