Changeset 7d0c1a8 in sasview for park_integration/test
- Timestamp:
- Oct 9, 2008 2:33:14 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:
- 385d464
- Parents:
- fb8d4050
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
park_integration/test/test_fit_line.py
r8bbab51 r7d0c1a8 5 5 from sans.guitools.plottables import Theory1D 6 6 from sans.guitools.plottables import Data1D 7 from sans.fit.AbstractFitEngine import Data, Model 7 from sans.fit.AbstractFitEngine import Data, Model,FitData1D 8 8 import math 9 9 class testFitModule(unittest.TestCase): … … 21 21 model1 = LineModel() 22 22 model1.name = "M1" 23 data = Data(sans_data=data1 ) 23 #data = Data(sans_data=data1 ) 24 data = FitData1D(data1 ) 24 25 model = Model(model1) 25 26 #fit with scipy test … … 85 86 model22 = LineModel() 86 87 model11.name= "M2" 87 data1 = Data(sans_data=data11 ) 88 data2 = Data(sans_data=data22 ) 88 #data1 = Data(sans_data=data11 ) 89 #data2 = Data(sans_data=data22 ) 90 data1 = FitData1D(data11 ) 91 data2 = FitData1D(data22 ) 92 89 93 model1 = Model(model11) 90 94 model2 = Model(model22) … … 150 154 # Constrain the constant value to be equal to parameter B (the real value is 2.5) 151 155 152 153 data1 = Data(sans_data=data11 ) 154 data2 = Data(sans_data=data22 ) 156 #data1 = Data(sans_data=data11 ) 157 #data2 = Data(sans_data=data22 ) 158 159 data1 = FitData1D(data11 ) 160 data2 = FitData1D(data22 ) 155 161 model1 = Model(model11) 156 162 model2 = Model(model22) … … 194 200 model1.name= "M1" 195 201 196 data1 = Data(sans_data=data11 ) 197 data2 = Data(sans_data=data22 ) 202 #data1 = Data(sans_data=data11 ) 203 #data2 = Data(sans_data=data22 ) 204 data1 = FitData1D(data11 ) 205 data2 = FitData1D(data22 ) 198 206 model = Model(model1) 199 207
Note: See TracChangeset
for help on using the changeset viewer.