Ignore:
Timestamp:
11/04/12 18:44:30 (18 months ago)
Author:
Miha Stajdohar <miha.stajdohar@…>
Branch:
default
Message:

Fixed more network references.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Classify/OWClassificationTree.py

    r10552 r11012  
    3737         
    3838        self.outputs = [("Learner", Orange.classification.tree.TreeLearner), 
    39                         ("Classification Tree", Orange.classification.tree.TreeClassifier), 
    40                         ("Classification Tree Graph", Orange.network.Graph)] 
     39                        ("Classification Tree", Orange.classification.tree.TreeClassifier), ] 
     40 
     41        try: 
     42            self.outputs.append(("Classification Tree Graph", Orange.network.Graph)) 
     43        except: 
     44            pass 
    4145 
    4246        self.name = 'Classification Tree' 
     
    151155 
    152156        self.send("Classification Tree", self.classifier) 
    153         self.send("Classification Tree Graph", tree_graph) 
    154157 
     158        if "Classification Tree Graph" in self.outputs: 
     159            self.send("Classification Tree Graph", tree_graph) 
    155160 
    156161    def measureChanged(self): 
Note: See TracChangeset for help on using the changeset viewer.