Ignore:
Timestamp:
01/18/12 10:56:15 (2 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
a367b01157310c282e7919193d767127e7829e26
Message:

Renamed widget channel names in line with the new naming rules/convention.
Added backwards compatibility in orngDoc loadDocument to enable loading of schemas saved before the change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Classify/OWITree.py

    r6538 r9546  
    2525    def __init__(self,parent = None, signalManager = None): 
    2626        OWClassificationTreeViewer.__init__(self, parent, signalManager, 'I&nteractive Tree Builder') 
    27         self.inputs = [("Examples", ExampleTable, self.setData), ("Tree Learner", orange.Learner, self.setLearner)] 
    28         self.outputs = [("Examples", ExampleTable), ("Classifier", orange.TreeClassifier), ("Tree Learner", orange.Learner)] 
     27        self.inputs = [("Data", ExampleTable, self.setData), ("Tree Learner", orange.Learner, self.setLearner)] 
     28        self.outputs = [("Data", ExampleTable), ("Classifier", orange.TreeClassifier), ("Tree Learner", orange.Learner)] 
    2929 
    3030        self.attridx = 0 
     
    9292        self.infoa.setText("Number of nodes: %i" % orngTree.countNodes(self.tree)) 
    9393        self.infob.setText("Number of leaves: %i" % orngTree.countLeaves(self.tree)) 
    94 #        self.send("Examples", self.tree) 
     94#        self.send("Data", self.tree) 
    9595        self.send("Classifier", self.tree) 
    9696        self.send("Tree Learner", self.learner) 
     
    204204            self.openContext("", None) 
    205205 
    206         self.send("Examples", None) 
     206        self.send("Data", None) 
    207207        self.updateTree() 
    208208        self.v.invisibleRootItem().child(0).setSelected(1) 
Note: See TracChangeset for help on using the changeset viewer.