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/Unsupervised/OWExampleDistance.py

    r9058 r9546  
    2323        OWWidget.__init__(self, parent, signalManager, 'ExampleDistance', wantMainArea = 0, resizingEnabled = 0) 
    2424 
    25         self.inputs = [("Examples", ExampleTable, self.dataset)] 
    26         self.outputs = [("Distance Matrix", orange.SymMatrix)] 
     25        self.inputs = [("Data", ExampleTable, self.dataset)] 
     26        self.outputs = [("Distances", orange.SymMatrix)] 
    2727 
    2828        self.Metrics = 0 
     
    8989            self.error(0, "Could not create distance matrix! %s" % str(ex)) 
    9090            self.matrix = None 
    91             self.send("Distance Matrix", None) 
     91            self.send("Distances", None) 
    9292            return 
    9393        self.matrix.setattr('items', data) 
     
    102102                count += 1 
    103103        pb.finish() 
    104         self.send("Distance Matrix", self.matrix) 
     104        self.send("Distances", self.matrix) 
    105105 
    106106    def setLabel(self): 
    107107        for d in self.data: 
    108108            d.name = str(d[str(self.Label)]) 
    109         self.send("Distance Matrix", self.matrix) 
     109        self.send("Distances", self.matrix) 
    110110 
    111111    def setLabelComboItems(self): 
     
    126126            self.computeMatrix() 
    127127        else: 
    128             self.send("Distance Matrix", None) 
     128            self.send("Distances", None) 
    129129 
    130130################################################################################################## 
Note: See TracChangeset for help on using the changeset viewer.