Changeset 385d464 in sasview for park_integration


Ignore:
Timestamp:
Oct 9, 2008 2:36:42 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:
6f73a08
Parents:
7d0c1a8
Message:

modified tests

Location:
park_integration/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • park_integration/test/small_test.py

    r8bbab51 r385d464  
    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 
    99from sans.fit.Fitting import Fit 
     
    2323        model1  = CylinderModel() 
    2424        model1.setParam('contrast', 1) 
    25         data = Data(sans_data=data1) 
     25        #data = Data(sans_data=data1) 
     26        data = FitData1D(data1) 
    2627        model = Model(model1) 
    2728         
  • park_integration/test/test_fit_cylinder.py

    r8bbab51 r385d464  
    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 
    99from sans.fit.Fitting import Fit 
     
    2424        model1  = CylinderModel() 
    2525        model1.setParam('contrast', 1) 
    26         data = Data(sans_data=data1) 
     26        #data = Data(sans_data=data1) 
     27        data = FitData1D(data1) 
    2728        model = Model(model1) 
    2829         
     
    5455        model1  = CylinderModel() 
    5556         
    56         data = Data(sans_data=data1) 
     57        #data = Data(sans_data=data1) 
     58        data = FitData1D(data1) 
    5759        model = Model(model1) 
    5860         
     
    9193        cyl1.name = "C1" 
    9294         
    93         data1 = Data(sans_data=data1) 
     95        #data1 = Data(sans_data=data1) 
     96        data1 = FitData1D(data1) 
    9497        model1 = Model(cyl1) 
    9598        model1.set(contrast=1) 
     
    101104        cyl2.name = "C2" 
    102105         
    103         data2 = Data(sans_data=data2) 
     106        #data2 = Data(sans_data=data2) 
     107        data2 = FitData1D(data2) 
    104108        # This is wrong. We should not store string as  
    105109        # parameter values 
Note: See TracChangeset for help on using the changeset viewer.