Changeset 93de635d in sasview for park_integration


Ignore:
Timestamp:
Apr 5, 2011 4:20:00 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
8aaf534
Parents:
ce7fce5
Message:

edit ftol parameter default value

Location:
park_integration
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • park_integration/Fitting.py

    r511c6810 r93de635d  
    5050            raise ValueError, "enter the keyword scipy or park" 
    5151 
    52     def fit(self, q=None, handler=None, curr_thread=None): 
     52    def fit(self, q=None, handler=None, curr_thread=None, ftol=1.49012e-8): 
    5353        """Perform the fit """ 
    54         return self._engine.fit(q, handler, curr_thread=curr_thread) 
     54        return self._engine.fit(q, handler, curr_thread=curr_thread, 
     55                                ftol=ftol) 
    5556      
    5657    def set_model(self, model, id, pars=[], constraints=[]): 
  • park_integration/ParkFitting.py

    rd7c05a8 r93de635d  
    144144         
    145145   
    146     def fit(self, q=None, handler=None, curr_thread=None, ftol=None): 
     146    def fit(self, q=None, handler=None, curr_thread=None, ftol=1.49012e-8): 
    147147        """ 
    148148        Performs fit with park.fit module.It can  perform fit with one model 
     
    167167        self.create_assembly(curr_thread=curr_thread) 
    168168        localfit = FitSimplex() 
    169         localfit.ftol = 1e-8 
     169        localfit.ftol = ftol 
    170170         
    171171        # See `park.fitresult.FitHandler` for details. 
  • park_integration/ScipyFitting.py

    r852354c8 r93de635d  
    105105    #    return profile(self._fit, *args, **kw) 
    106106 
    107     def fit(self, q=None, handler=None, curr_thread=None): 
     107    def fit(self, q=None, handler=None, curr_thread=None, ftol=1.49012e-8): 
    108108        """ 
    109109        """ 
     
    127127        
    128128        self.curr_thread = curr_thread 
    129         ftol = curr_thread.ftol 
     129        ftol = ftol 
    130130         
    131131        # Check the initial value if it is within range 
  • park_integration/setup.py

    rc41e268 r93de635d  
    22     Installation script for SANS fitting 
    33""" 
    4  
     4import sys 
     5if len(sys.argv) == 1: 
     6    sys.argv.append('install') 
    57# Then build and install the modules 
    68from distutils.core import setup, Extension 
Note: See TracChangeset for help on using the changeset viewer.