Changeset cfe97ea in sasview
- Timestamp:
- Aug 1, 2008 2:51:22 PM (16 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:
- b39c817
- Parents:
- 9198b83
- Location:
- park_integration/test
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/test/test_large_model.py
r30c6721 rcfe97ea 14 14 from sans.fit.Loader import Load 15 15 load= Load() 16 load.set_filename(" testdata_line.txt")16 load.set_filename("cyl_testdata.txt") 17 17 load.set_values() 18 18 data1 = Data1D(x=[], y=[],dx=None, dy=None) … … 31 31 from sans.models.CylinderModel import CylinderModel 32 32 model1 = CylinderModel() 33 model2 = CylinderModel()33 #model2 = CylinderModel() 34 34 35 35 #Do the fit SCIPY 36 36 fitter.set_data(data1,1) 37 fitter.set_model(model1,"M1",1,) 37 import math 38 pars1={'background':0,'contrast':3*math.pow(10, -6),\ 39 'cyl_phi':1,'cyl_theta':1,'length':400,'radius':20,'scale':1} 40 fitter.set_model(model1,"M1",1,pars1) 38 41 39 fitter.set_data(data2,2)40 fitter.set_model(model1,"M1",2,None)42 #fitter.set_data(data2,2) 43 #fitter.set_model(model1,"M1",2,pars1) 41 44 42 45 chisqr1, out1, cov1=fitter.fit()
Note: See TracChangeset
for help on using the changeset viewer.