Skip to content

Commit

Permalink
Correlations: Annotate settings
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Oct 3, 2020
1 parent 18b8401 commit ce4a45b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Orange/widgets/data/owcorrelations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from operator import attrgetter
from types import SimpleNamespace
from itertools import combinations, groupby, chain
from typing import List

import numpy as np
from scipy.stats import spearmanr, pearsonr
Expand Down Expand Up @@ -253,8 +254,8 @@ class Outputs:

settings_version = 3
settingsHandler = DomainContextHandler()
selection = ContextSetting([])
feature = ContextSetting(None)
selection: List[ContinuousVariable] = ContextSetting([])
feature: ContinuousVariable = ContextSetting(None)
correlation_type = Setting(0)

class Information(OWWidget.Information):
Expand Down Expand Up @@ -431,10 +432,6 @@ def migrate_context(cls, context, version):
sel = context.values["selection"]
context.values["selection"] = [(var.name, vartype(var))
for var in sel[0]]
if version < 3:
sel = context.values["selection"]
context.values["selection"] = ([(name, vtype + 100)
for name, vtype in sel], -3)


if __name__ == "__main__": # pragma: no cover
Expand Down

0 comments on commit ce4a45b

Please sign in to comment.