We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54d8498 commit 6bf05aeCopy full SHA for 6bf05ae
Orange/data/util.py
@@ -44,10 +44,13 @@ class SharedComputeValue:
44
A callable that performs computation that is shared between
45
multiple variables. Variables sharing computation need to set
46
the same instance.
47
+ variable: Orange.data.Variable
48
+ The original variable on which this compute value is set.
49
"""
50
- def __init__(self, compute_shared):
51
+ def __init__(self, compute_shared, variable=None):
52
self.compute_shared = compute_shared
53
+ self.variable = variable
54
55
def __call__(self, data, shared_data=None):
56
"""Fallback if common parts are not passed."""
0 commit comments