Changeset 7d0c1a8 in sasview for park_integration/test


Ignore:
Timestamp:
Oct 9, 2008 2:33:14 PM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

introduced fitdata1D and fitdata2D class instead of Data class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/test/test_fit_line.py

    r8bbab51 r7d0c1a8  
    55from sans.guitools.plottables import Theory1D 
    66from sans.guitools.plottables import Data1D 
    7 from sans.fit.AbstractFitEngine import Data, Model 
     7from sans.fit.AbstractFitEngine import Data, Model,FitData1D 
    88import math 
    99class testFitModule(unittest.TestCase): 
     
    2121        model1  = LineModel() 
    2222        model1.name = "M1" 
    23         data = Data(sans_data=data1 ) 
     23        #data = Data(sans_data=data1 ) 
     24        data = FitData1D(data1 ) 
    2425        model = Model(model1) 
    2526        #fit with scipy test 
     
    8586        model22  = LineModel() 
    8687        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         
    8993        model1 = Model(model11) 
    9094        model2 = Model(model22) 
     
    150154        # Constrain the constant value to be equal to parameter B (the real value is 2.5) 
    151155         
    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 ) 
    155161        model1 = Model(model11) 
    156162        model2 = Model(model22) 
     
    194200        model1.name= "M1" 
    195201       
    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 ) 
    198206        model = Model(model1) 
    199207         
Note: See TracChangeset for help on using the changeset viewer.