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

    r9238 r9546  
    5151        OWWidget.__init__(self, parent, signalManager, 'k-Means Clustering') 
    5252 
    53         self.inputs = [("Examples", ExampleTable, self.setData)] 
    54         self.outputs = [("Examples", ExampleTable), ("Centroids", ExampleTable)] 
     53        self.inputs = [("Data", ExampleTable, self.setData)] 
     54        self.outputs = [("Data", ExampleTable), ("Centroids", ExampleTable)] 
    5555 
    5656        #set default settings 
     
    364364            km = self.bestRun[1] if self.optimized else self.km  
    365365        if not self.data or not km: 
    366             self.send("Examples", None) 
     366            self.send("Data", None) 
    367367            self.send("Centroids", None) 
    368368            return 
     
    396396                c[origDomain.classVar] = "?" 
    397397 
    398         self.send("Examples", new) 
     398        self.send("Data", new) 
    399399        self.send("Centroids", centroids) 
    400400         
Note: See TracChangeset for help on using the changeset viewer.