Ignore:
Timestamp:
03/19/12 12:14:20 (2 years ago)
Author:
markotoplak
Branch:
default
rebase_source:
92659cf777626f5bc411357989a821dd2083e466
Message:

Moved deprecation functions, progress bar support and environ into Orange.utils. Orange imports cleanly, although it is not tested yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/optimization/__init__.py

    r10302 r10580  
    9393import Orange.misc 
    9494 
    95 from Orange.misc import (deprecated_class_attribute, deprecated_keywords, 
    96                          deprecated_members) 
     95from Orange.utils import deprecated_class_attribute, deprecated_keywords, \ 
     96                         deprecated_members 
    9797 
    9898class TuneParameters(Orange.classification.Learner): 
     
    304304        else: 
    305305            classifier = self.object(data) 
    306             if not Orange.misc.environ.orange_no_deprecated_members: 
     306            if not Orange.utils.environ.orange_no_deprecated_members: 
    307307                classifier.setattr("fittedParameter", bestpar) 
    308308            classifier.setattr("fitted_parameter", bestpar) 
     
    392392        else: 
    393393            classifier = self.object(data) 
    394             if Orange.misc.environ.orange_no_deprecated_members: 
     394            if Orange.utils.environ.orange_no_deprecated_members: 
    395395                classifier.fittedParameters = bestpar 
    396396            classifier.fitted_parameters = bestpar 
Note: See TracChangeset for help on using the changeset viewer.