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

    r7870 r9546  
    5656        OWWidget.__init__(self, parent, signalManager, "FeatureConstructor") 
    5757 
    58         self.inputs = [("Examples", orange.ExampleTable, self.setData)] 
    59         self.outputs = [("Examples", ExampleTable)] 
     58        self.inputs = [("Data", orange.ExampleTable, self.setData)] 
     59        self.outputs = [("Data", ExampleTable)] 
    6060 
    6161        self.expression = self.attrname = "" 
     
    223223        self.dataChanged = False 
    224224        if not self.data: 
    225             self.send("Examples", None) 
     225            self.send("Data", None) 
    226226            return 
    227227 
     
    232232            if names.count(name)>1 or name in oldDomain > 1: 
    233233                self.error(1, "Multiple attributes with the same name (%s)" % name) 
    234                 self.send("Examples", None) 
     234                self.send("Data", None) 
    235235                return 
    236236 
     
    247247            if not solved: 
    248248                self.error(1, "Circular attribute definitions (%s)" % ", ".join([x[0] for x in unknown])) 
    249                 self.send("Examples", None) 
     249                self.send("Data", None) 
    250250                return 
    251251            for name, exp, unk_attrs in unknown: 
     
    256256        newDomain = orange.Domain(oldDomain.attributes + [orange.FloatVariable(str(attrname), getValueFrom = AttrComputer(reinserted[attrname])) for attrname in names], oldDomain.classVar) 
    257257        newDomain.addmetas(oldDomain.getmetas()) 
    258         self.send("Examples", orange.ExampleTable(newDomain, self.data)) 
     258        self.send("Data", orange.ExampleTable(newDomain, self.data)) 
Note: See TracChangeset for help on using the changeset viewer.