Changeset 93f0a586 in sasview


Ignore:
Timestamp:
Jul 10, 2008 3:13:19 PM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
16d8e5f
Parents:
85bf28c
Message:

Esthetics…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/Fitting.py

    r9cd84ee r93f0a586  
    2626        chisqr1, out1, cov1=engine.fit(pars,qmin,qmax) 
    2727    """   
    28     def __init__(self): 
     28    def __init__(self, engine='scipy'): 
    2929        """ 
    3030            self._engine will contain an instance of ScipyFit or ParkFit 
    3131        """ 
    3232        self._engine=None 
     33        self.set_engine(engine) 
    3334           
    34     def fit_engine(self,word): 
     35    def set_engine(self,word): 
    3536        """ 
    3637            Select the type of Fit  
     
    6364    def set_param(self,model,name, pars): 
    6465        """ Recieve a dictionary of parameter and save it """ 
     66        self._engine.set_param(model, name, pars) 
    6567    
    6668    def remove_data(self,Uid,data=None): 
Note: See TracChangeset for help on using the changeset viewer.