Skip to content

Commit

Permalink
OWPCA: Remove DomainContextHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Apr 19, 2020
1 parent 66ac0f7 commit 758d81e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Orange/widgets/unsupervised/owpca.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -113,7 +111,6 @@ def __init__(self):

@Inputs.data
def set_data(self, data):
self.closeContext()
self.clear_messages()
self.clear()
self.information()
Expand All @@ -136,7 +133,6 @@ def set_data(self, data):
self.clear_outputs()
return

self.openContext(data)
self._init_projector()

self.data = data
Expand Down

0 comments on commit 758d81e

Please sign in to comment.