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/Data/OWPythonScript.py

    r10727 r11012  
    266266        OWWidget.__init__(self, parent, signalManager, 'Python Script') 
    267267         
    268         self.inputs = [("in_data", ExampleTable, self.setExampleTable), ("in_distance", orange.SymMatrix, self.setDistanceMatrix), ("in_network", Orange.network.Graph, self.setNetwork), ("in_learner", orange.Learner, self.setLearner), ("in_classifier", orange.Classifier, self.setClassifier)] 
    269         self.outputs = [("out_data", ExampleTable), ("out_distance", orange.SymMatrix), ("out_network", Orange.network.Graph), ("out_learner", orange.Learner), ("out_classifier", orange.Classifier, Dynamic)] 
    270          
     268        self.inputs = [("in_data", ExampleTable, self.setExampleTable), ("in_distance", orange.SymMatrix, self.setDistanceMatrix), ("in_learner", orange.Learner, self.setLearner), ("in_classifier", orange.Classifier, self.setClassifier)] 
     269        self.outputs = [("out_data", ExampleTable), ("out_distance", orange.SymMatrix), ("out_learner", orange.Learner), ("out_classifier", orange.Classifier, Dynamic)] 
     270 
     271        try: 
     272            self.inputs.append(("in_network", Orange.network.Graph, self.setNetwork)) 
     273            self.outputs.append(("out_network", Orange.network.Graph)) 
     274        except: 
     275            pass 
     276 
    271277        self.in_data = None 
    272278        self.in_network = None 
Note: See TracChangeset for help on using the changeset viewer.