Changeset 9182:a36e0aafbbc0 in orange


Ignore:
Timestamp:
11/08/11 21:11:46 (2 years ago)
Author:
markotoplak
Branch:
default
Convert:
5b67c8de23cf32ec78b78841ebf08cef30fe1f43
Message:

Fixed attribute setting for C45Learner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/classification/tree.py

    r9181 r9182  
    15041504        if name != "base" and nn in self.base.__dict__: 
    15051505            self.base.__dict__[nn] = value 
    1506         elif name == "base": 
    1507             self.__dict__["base"] = value 
    15081506        else: 
    1509             settingAttributesNotSuccessful 
     1507            self.__dict__[nn] = value 
    15101508 
    15111509    def __getattr__(self, name): 
    15121510        nn = self._rename_arg(name) 
    1513         if name != "base": 
     1511        if name != " base" and nn in self.base.__dict__: 
    15141512            return self.base.__dict__[nn] 
    15151513        else: 
    1516             return self.base 
     1514            return self.__dict__[nn] 
    15171515 
    15181516    def __call__(self, *args, **kwargs): 
Note: See TracChangeset for help on using the changeset viewer.