Skip to content

Commit

Permalink
owtsne: Fix normalized_data not being invalidated properly
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlin-policar committed Sep 22, 2023
1 parent febfcab commit be467ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Orange/widgets/unsupervised/owtsne.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit be467ca

Please sign in to comment.