From be467ca354323e87acd5f432ff0578d4d308de53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavlin=20Poli=C4=8Dar?= Date: Tue, 21 Feb 2023 19:56:38 +0100 Subject: [PATCH] owtsne: Fix normalized_data not being invalidated properly --- Orange/widgets/unsupervised/owtsne.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Orange/widgets/unsupervised/owtsne.py b/Orange/widgets/unsupervised/owtsne.py index 90491b72da4..3265bcdefe3 100644 --- a/Orange/widgets/unsupervised/owtsne.py +++ b/Orange/widgets/unsupervised/owtsne.py @@ -579,6 +579,8 @@ def enable_controls(self): def run(self): # Reset invalidated values as indicated by the flags + if self._invalidated.normalized_data: + self.normalized_data = None if self._invalidated.pca_projection: self.pca_projection = None if self._invalidated.affinities: @@ -709,6 +711,9 @@ def on_done(self, task): self.run_button.setText("Start") # NOTE: All of these have already been set by on_partial_result, # we double-check that they are aliases + if task.normalized_data is not None: + self.__ensure_task_same_for_normalization(task) + assert task.normalized_data is self.normalized_data if task.pca_projection is not None: self.__ensure_task_same_for_pca(task) assert task.pca_projection is self.pca_projection