From 66ac0f74a124adf5e1678ff51dff8afa759a3022 Mon Sep 17 00:00:00 2001 From: janezd Date: Sun, 19 Apr 2020 15:52:48 +0200 Subject: [PATCH 1/2] OWTable: Remove DomainContextHandler --- Orange/widgets/data/owtable.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Orange/widgets/data/owtable.py b/Orange/widgets/data/owtable.py index abd2e0f0fb1..e09a4b1097d 100644 --- a/Orange/widgets/data/owtable.py +++ b/Orange/widgets/data/owtable.py @@ -32,7 +32,7 @@ from Orange.statistics import basic_stats from Orange.widgets import gui -from Orange.widgets.settings import Setting, DomainContextHandler +from Orange.widgets.settings import Setting from Orange.widgets.utils.widgetpreview import WidgetPreview from Orange.widgets.widget import OWWidget, Input, Output from Orange.widgets.utils import datacaching @@ -425,8 +425,6 @@ class Outputs: auto_commit = Setting(True) color_by_class = Setting(True) - settingsHandler = DomainContextHandler( - match_values=DomainContextHandler.MATCH_VALUES_ALL) selected_rows = Setting([], schema_only=True) selected_cols = Setting([], schema_only=True) @@ -493,7 +491,6 @@ def sizeHint(): @Inputs.data def set_dataset(self, data, tid=None): """Set the input dataset.""" - self.closeContext() if data is not None: datasetname = getattr(data, "name", "Data") if tid in self._inputs: @@ -560,7 +557,6 @@ def update(_): self.set_info(current.input_slot.summary) self.tabs.tabBar().setVisible(self.tabs.count() > 1) - self.openContext(data) if data and self.__pending_selected_rows is not None: self.selected_rows = self.__pending_selected_rows From 758d81ecee56e15bc09c76ed2bd7b06d398115c7 Mon Sep 17 00:00:00 2001 From: janezd Date: Sun, 19 Apr 2020 15:53:03 +0200 Subject: [PATCH 2/2] OWPCA: Remove DomainContextHandler --- Orange/widgets/unsupervised/owpca.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Orange/widgets/unsupervised/owpca.py b/Orange/widgets/unsupervised/owpca.py index 8bd69c90010..8a92818648b 100644 --- a/Orange/widgets/unsupervised/owpca.py +++ b/Orange/widgets/unsupervised/owpca.py @@ -35,12 +35,10 @@ class Outputs: components = Output("Components", Table) pca = Output("PCA", PCA, dynamic=False) - settingsHandler = settings.DomainContextHandler() - ncomponents = settings.Setting(2) variance_covered = settings.Setting(100) auto_commit = settings.Setting(True) - normalize = settings.ContextSetting(True) + normalize = settings.Setting(True) maxp = settings.Setting(20) axis_labels = settings.Setting(10) @@ -113,7 +111,6 @@ def __init__(self): @Inputs.data def set_data(self, data): - self.closeContext() self.clear_messages() self.clear() self.information() @@ -136,7 +133,6 @@ def set_data(self, data): self.clear_outputs() return - self.openContext(data) self._init_projector() self.data = data