Changeset 4de1fed in sasview
- Timestamp:
- May 8, 2014 8:08:28 AM (11 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:
- 8d074d9
- Parents:
- e544c84
- Location:
- test/park_integration/test
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
test/park_integration/test/batch_fit.py
r5777106 r4de1fed 1 1 2 2 3 import math4 import numpy5 3 import copy 6 4 import time -
test/park_integration/test/utest_small_test.py
r5777106 r4de1fed 5 5 import math 6 6 from sans.fit.Fitting import Fit 7 from DataLoader.loader import Loader7 from sans.dataloader.loader import Loader 8 8 9 9 class testFitModule(unittest.TestCase): … … 18 18 from sans.models.CylinderModel import CylinderModel 19 19 model = CylinderModel() 20 model.setParam('contrast', 1) 21 20 model.setParam('sldCyl', 1) 21 model.setParam('sldSolv', 0) 22 22 23 pars1 =['length','radius','scale'] 23 24 fitter.set_data(out,1) 24 25 model.setParam('scale', 1e-10) 25 26 fitter.set_model(model,1,pars1, constraints=()) 26 fitter.select_problem_for_fit( Uid=1,value=1)27 result1 = fitter.fit()27 fitter.select_problem_for_fit(id=1,value=1) 28 result1, = fitter.fit() 28 29 29 30 self.assert_(result1)
Note: See TracChangeset
for help on using the changeset viewer.