diff --git a/Orange/widgets/model/owcurvefit.py b/Orange/widgets/model/owcurvefit.py index 11ad6bcd35b..f70eb5ea29e 100644 --- a/Orange/widgets/model/owcurvefit.py +++ b/Orange/widgets/model/owcurvefit.py @@ -386,6 +386,7 @@ def __insert_into_expression(self, what: str, offset=0): self.__expression_edit.setCursorPosition(pos + len(what) - offset) self.__expression_edit.setFocus() + @OWBaseLearner.Inputs.data def set_data(self, data: Optional[Table]): self.Warning.data_missing(shown=not bool(data)) self.learner = None diff --git a/Orange/widgets/model/owsvm.py b/Orange/widgets/model/owsvm.py index 9b58d94fab2..8587a7cebdd 100644 --- a/Orange/widgets/model/owsvm.py +++ b/Orange/widgets/model/owsvm.py @@ -206,6 +206,7 @@ def _on_kernel_changed(self): self._show_right_kernel() self.settings_changed() + @OWBaseLearner.Inputs.data def set_data(self, data): self.Warning.sparse_data.clear() super().set_data(data) diff --git a/Orange/widgets/utils/tests/concurrent_example.py b/Orange/widgets/utils/tests/concurrent_example.py index 9117eca6060..3fa8453dcdd 100644 --- a/Orange/widgets/utils/tests/concurrent_example.py +++ b/Orange/widgets/utils/tests/concurrent_example.py @@ -103,6 +103,7 @@ def on_exception(self, ex: Exception): raise ex # OWDataProjectionWidget + @OWDataProjectionWidget.Inputs.data def set_data(self, data: Table): super().set_data(data) if self._invalidated: diff --git a/Orange/widgets/visualize/owfreeviz.py b/Orange/widgets/visualize/owfreeviz.py index 6db04a29f4e..c9435ad55e9 100644 --- a/Orange/widgets/visualize/owfreeviz.py +++ b/Orange/widgets/visualize/owfreeviz.py @@ -232,6 +232,7 @@ def on_exception(self, ex: Exception): self.run_button.setText("Start") # OWAnchorProjectionWidget + @OWAnchorProjectionWidget.Inputs.data def set_data(self, data): super().set_data(data) self.graph.set_sample_size(None) diff --git a/Orange/widgets/visualize/owlinearprojection.py b/Orange/widgets/visualize/owlinearprojection.py index 48fcdf888af..8baa07524e2 100644 --- a/Orange/widgets/visualize/owlinearprojection.py +++ b/Orange/widgets/visualize/owlinearprojection.py @@ -362,6 +362,7 @@ def colors_changed(self): super().colors_changed() self._init_vizrank() + @OWAnchorProjectionWidget.Inputs.data def set_data(self, data): super().set_data(data) self._check_options() diff --git a/Orange/widgets/visualize/owradviz.py b/Orange/widgets/visualize/owradviz.py index 781723c6ba7..0046cd2f7c2 100644 --- a/Orange/widgets/visualize/owradviz.py +++ b/Orange/widgets/visualize/owradviz.py @@ -382,6 +382,7 @@ def colors_changed(self): super().colors_changed() self._init_vizrank() + @OWAnchorProjectionWidget.Inputs.data def set_data(self, data): super().set_data(data) self._init_vizrank() diff --git a/Orange/widgets/visualize/owscatterplot.py b/Orange/widgets/visualize/owscatterplot.py index 9947ab30a98..d877d0c722c 100644 --- a/Orange/widgets/visualize/owscatterplot.py +++ b/Orange/widgets/visualize/owscatterplot.py @@ -447,6 +447,7 @@ def _vizrank_color_change(self): self.vizrank_button.setEnabled(not err_msg) self.vizrank_button.setToolTip(err_msg) + @OWDataProjectionWidget.Inputs.data def set_data(self, data): super().set_data(data) self._vizrank_color_change() @@ -558,6 +559,7 @@ def switch_sampling(self): self.add_data() self.__timer.start() + @OWDataProjectionWidget.Inputs.data_subset def set_subset_data(self, subset_data): self.warning() if isinstance(subset_data, SqlTable):