Changeset 10760:135e7ffe9fa2 in orange


Ignore:
Timestamp:
04/05/12 11:43:48 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Check for correct input class variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Regression/OWLinearRegression.py

    r10483 r10760  
    103103         
    104104    def set_data(self, data=None): 
     105        if not self.isDataWithClass(data, Orange.core.VarTypes.Continuous,  
     106                                    checkMissing=True): 
     107            data = None 
    105108        self.data = data 
    106109             
Note: See TracChangeset for help on using the changeset viewer.