Changeset acf8e4a5 in sasview for test/sasfit/test/batch_fit.py
- Timestamp:
- Mar 31, 2015 11:52:01 AM (10 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sasfit/test/batch_fit.py
refa5e44 racf8e4a5 3 3 import unittest 4 4 from sas.dataloader.loader import Loader 5 from sas.fit.Fitting import Fit5 from sas.fit.Fitting import BumpsFit as Fit 6 6 from sas.models.CylinderModel import CylinderModel 7 7 import sas.models.dispersion_models … … 42 42 self.qmax = qmax 43 43 44 def _reset_helper(self, path=None, engine="bumps",npts=NPTS):44 def _reset_helper(self, path=None, npts=NPTS): 45 45 """ 46 Set value to fitter engineand prepare inputs for map function46 Set value to fitter and prepare inputs for map function 47 47 """ 48 48 for i in range(npts): 49 49 data = Loader().load(path) 50 fitter = Fit( engine)50 fitter = Fit() 51 51 #create model 52 52 model = CylinderModel() … … 77 77 self.list_of_mapper.append(classMapper) 78 78 79 def reset_value(self , engine='bumps'):79 def reset_value(self): 80 80 """ 81 81 Initialize inputs for the map function … … 88 88 89 89 path = "testdata_line3.txt" 90 self._reset_helper(path=path, engine=engine,npts=NPTS)90 self._reset_helper(path=path, npts=NPTS) 91 91 path = "testdata_line.txt" 92 self._reset_helper(path=path, engine=engine,npts=NPTS)92 self._reset_helper(path=path, npts=NPTS) 93 93 path = "SILIC010_noheader.DAT" 94 self._reset_helper(path=path, engine=engine,npts=NPTS)94 self._reset_helper(path=path, npts=NPTS) 95 95 path = "cyl_400_20.txt" 96 self._reset_helper(path=path, engine=engine,npts=NPTS)96 self._reset_helper(path=path, npts=NPTS) 97 97 path = "sphere_80.txt" 98 self._reset_helper(path=path, engine=engine,npts=NPTS)98 self._reset_helper(path=path, npts=NPTS) 99 99 path = "PolySpheres.txt" 100 self._reset_helper(path=path, engine=engine,npts=NPTS)100 self._reset_helper(path=path, npts=NPTS) 101 101 path = "latex_qdev.txt" 102 self._reset_helper(path=path, engine=engine,npts=NPTS)102 self._reset_helper(path=path, npts=NPTS) 103 103 path = "latex_qdev2.txt" 104 self._reset_helper(path=path, engine=engine,npts=NPTS)104 self._reset_helper(path=path, npts=NPTS) 105 105 106 106
Note: See TracChangeset
for help on using the changeset viewer.