Changeset dd8ee14 in sasview for park_integration/test
- Timestamp:
- Apr 7, 2011 1:37:32 PM (14 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:
- 078f2f2
- Parents:
- 64e44c1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/test/test_fit_line.py
rfd6b789 rdd8ee14 35 35 pars1= ['A','B'] 36 36 fitter.set_model(model,1,pars1) 37 fitter.select_problem_for_fit( Uid=1,value=1)37 fitter.select_problem_for_fit(id=1,value=1) 38 38 result1 = fitter.fit() 39 39 self.assert_(result1) … … 47 47 fitter.set_data(data,1) 48 48 fitter.set_model(model,1,pars1) 49 fitter.select_problem_for_fit( Uid=1,value=1)49 fitter.select_problem_for_fit(id=1,value=1) 50 50 result2 = fitter.fit() 51 51 … … 88 88 fitter.set_data(data1,1) 89 89 fitter.set_model(model1,1,pars1) 90 fitter.select_problem_for_fit( Uid=1,value=0)90 fitter.select_problem_for_fit(id=1,value=0) 91 91 fitter.set_data(data2,2) 92 92 fitter.set_model(model2,2,pars1) 93 fitter.select_problem_for_fit( Uid=2,value=0)93 fitter.select_problem_for_fit(id=2,value=0) 94 94 95 95 try: result1 = fitter.fit() … … 97 97 assert str(msg)=="No Assembly scheduled for Scipy fitting." 98 98 else: raise AssertError,"No error raised for scipy fitting with no model" 99 fitter.select_problem_for_fit( Uid=1,value=1)100 fitter.select_problem_for_fit( Uid=2,value=1)99 fitter.select_problem_for_fit(id=1,value=1) 100 fitter.select_problem_for_fit(id=2,value=1) 101 101 try: result1 = fitter.fit() 102 102 except RuntimeError,msg: … … 110 110 fitter.set_data(data2,2) 111 111 fitter.set_model(model2,2,pars1) 112 fitter.select_problem_for_fit( Uid=1,value=1)113 fitter.select_problem_for_fit( Uid=2,value=1)112 fitter.select_problem_for_fit(id=1,value=1) 113 fitter.select_problem_for_fit(id=2,value=1) 114 114 result2 = fitter.fit() 115 115 … … 157 157 fitter.set_data(data2,2,smearer=None) 158 158 fitter.set_model(model2,2,pars2) 159 fitter.select_problem_for_fit( Uid=1,value=1)160 fitter.select_problem_for_fit( Uid=2,value=1)159 fitter.select_problem_for_fit(id=1,value=1) 160 fitter.select_problem_for_fit(id=2,value=1) 161 161 162 162 result2 = fitter.fit() … … 192 192 fitter.set_model(model,1,pars1) 193 193 fitter.set_data(data2,1,qmin=1,qmax=10) 194 fitter.select_problem_for_fit( Uid=1,value=1)194 fitter.select_problem_for_fit(id=1,value=1) 195 195 196 196 result1 = fitter.fit() … … 206 206 fitter.set_model(model,1,pars1) 207 207 fitter.set_data(data2,1,qmin=1,qmax=10) 208 fitter.select_problem_for_fit( Uid=1,value=1)208 fitter.select_problem_for_fit(id=1,value=1) 209 209 result2 = fitter.fit() 210 210
Note: See TracChangeset
for help on using the changeset viewer.