Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Decorate overridden input data handler #5836

Merged
merged 1 commit into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Orange/widgets/model/owcurvefit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Orange/widgets/model/owsvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions Orange/widgets/utils/tests/concurrent_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions Orange/widgets/visualize/owfreeviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions Orange/widgets/visualize/owlinearprojection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions Orange/widgets/visualize/owradviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions Orange/widgets/visualize/owscatterplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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):
Expand Down