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/OWDistanceMap.py

    r9273 r9546  
    7373        OWWidget.__init__(self, parent, signalManager, 'Distance Map', wantGraph=True) 
    7474 
    75         self.inputs = [("Distance Matrix", orange.SymMatrix, self.setMatrix)] 
    76         self.outputs = [("Examples", ExampleTable), ("Attribute List", orange.VarList)] 
     75        self.inputs = [("Distances", orange.SymMatrix, self.setMatrix)] 
     76        self.outputs = [("Data", ExampleTable), ("Features", orange.VarList)] 
    7777 
    7878        self.clicked = False 
     
    313313 
    314314        if len(self.selection.getSelection())==0: 
    315             self.send("Attribute List", None) 
    316             self.send("Examples", None) 
     315            self.send("Features", None) 
     316            self.send("Data", None) 
    317317        else: 
    318318            selection = self.selection.getSelection() 
     
    341341                for i in selectedIndices: 
    342342                    selected.append(items[i]) 
    343                 self.send("Attribute List", selected) 
     343                self.send("Features", selected) 
    344344 
    345345 
     
    347347                ex = [items[x] for x in selectedIndices] 
    348348                selected = orange.ExampleTable(items[0].domain, ex) 
    349                 self.send("Examples", selected) 
     349                self.send("Data", selected) 
    350350 
    351351    def getGammaCorrectedPalette(self): 
     
    829829 
    830830    def setMatrix(self, matrix): 
    831         self.send("Examples", None) 
    832         self.send("Attribute List", None) 
     831        self.send("Data", None) 
     832        self.send("Features", None) 
    833833        self._clustering_cache.clear() 
    834834 
Note: See TracChangeset for help on using the changeset viewer.