Changeset acf8e4a5 in sasview for test/sasfit/test/batch_fit.py


Ignore:
Timestamp:
Mar 31, 2015 11:52:01 AM (10 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
4342107f, c971c98
Parents:
6987c8a
Message:

reference BumpsFit? directly and remove fit engine selection layer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/sasfit/test/batch_fit.py

    refa5e44 racf8e4a5  
    33import unittest 
    44from sas.dataloader.loader import Loader 
    5 from sas.fit.Fitting import Fit 
     5from sas.fit.Fitting import BumpsFit as Fit 
    66from sas.models.CylinderModel import CylinderModel 
    77import sas.models.dispersion_models  
     
    4242        self.qmax = qmax 
    4343         
    44     def _reset_helper(self, path=None, engine="bumps", npts=NPTS): 
     44    def _reset_helper(self, path=None, npts=NPTS): 
    4545        """ 
    46         Set value to fitter engine and prepare inputs for map function 
     46        Set value to fitter and prepare inputs for map function 
    4747        """ 
    4848        for i in range(npts): 
    4949            data = Loader().load(path) 
    50             fitter = Fit(engine) 
     50            fitter = Fit() 
    5151            #create model 
    5252            model = CylinderModel() 
     
    7777            self.list_of_mapper.append(classMapper) 
    7878                    
    79     def reset_value(self, engine='bumps'): 
     79    def reset_value(self): 
    8080        """ 
    8181        Initialize inputs for the map function 
     
    8888 
    8989        path = "testdata_line3.txt" 
    90         self._reset_helper(path=path, engine=engine, npts=NPTS) 
     90        self._reset_helper(path=path, npts=NPTS) 
    9191        path = "testdata_line.txt" 
    92         self._reset_helper(path=path, engine=engine, npts=NPTS) 
     92        self._reset_helper(path=path, npts=NPTS) 
    9393        path = "SILIC010_noheader.DAT" 
    94         self._reset_helper(path=path, engine=engine, npts=NPTS) 
     94        self._reset_helper(path=path, npts=NPTS) 
    9595        path = "cyl_400_20.txt" 
    96         self._reset_helper(path=path, engine=engine, npts=NPTS) 
     96        self._reset_helper(path=path, npts=NPTS) 
    9797        path = "sphere_80.txt" 
    98         self._reset_helper(path=path, engine=engine, npts=NPTS) 
     98        self._reset_helper(path=path, npts=NPTS) 
    9999        path = "PolySpheres.txt" 
    100         self._reset_helper(path=path, engine=engine, npts=NPTS) 
     100        self._reset_helper(path=path, npts=NPTS) 
    101101        path = "latex_qdev.txt" 
    102         self._reset_helper(path=path, engine=engine, npts=NPTS) 
     102        self._reset_helper(path=path, npts=NPTS) 
    103103        path = "latex_qdev2.txt" 
    104         self._reset_helper(path=path, engine=engine, npts=NPTS) 
     104        self._reset_helper(path=path, npts=NPTS) 
    105105         
    106106       
Note: See TracChangeset for help on using the changeset viewer.