From 7bce7f33fb37bcea8630e422ae7d511b355a1e22 Mon Sep 17 00:00:00 2001 From: Lan Zagar Date: Fri, 17 Feb 2023 12:12:35 +0100 Subject: [PATCH] OWMDS: Remove repeated updates in on_done --- Orange/widgets/unsupervised/owmds.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Orange/widgets/unsupervised/owmds.py b/Orange/widgets/unsupervised/owmds.py index d1d2b7bf54d..05708dc1274 100644 --- a/Orange/widgets/unsupervised/owmds.py +++ b/Orange/widgets/unsupervised/owmds.py @@ -400,10 +400,7 @@ def on_partial_result(self, result: Result): def on_done(self, result: Result): assert isinstance(result.embedding, np.ndarray) assert len(result.embedding) == len(self.effective_matrix) - self.embedding = result.embedding - self.graph.update_coordinates() - self.graph.update_density() - self.update_stress() + # embedding, graph and stress are already updated in on_partial_result self.run_button.setText("Start") self.step_button.setEnabled(True) self.commit.deferred()