Changeset 796


Ignore:
Timestamp:
06/15/15 05:29:06 (11 months ago)
Author:
mmckerns
Message:

fix: fmin_powell call cost in Finalize when energy_history != None and live

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mystic/mystic/scipy_optimize.py

    r795 r796  
    605605    def Finalize(self, **kwds): 
    606606        """cleanup upon exiting the main optimization loop""" 
    607         if self.energy_history and self._live: 
     607        if self.energy_history != None and self._live: 
    608608            self.energy_history = None # resync with 'best' energy 
    609609            self._stepmon(self.bestSolution, self.bestEnergy, self.id) 
Note: See TracChangeset for help on using the changeset viewer.