Skip to content

Commit fcb4f44

Browse files
OWKmeans: Send data when X is same only when auto commit
1 parent beb491c commit fcb4f44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Orange/widgets/unsupervised/owkmeans.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@ def set_data(self, data):
470470

471471
# Do not needlessly recluster the data if X hasn't changed
472472
if old_data and self.data and np.array_equal(self.data.X, old_data.X):
473-
self.send_data()
473+
if self.auto_commit:
474+
self.send_data()
474475
else:
475476
self.invalidate()
476477

0 commit comments

Comments
 (0)