Changeset cfe97ea in sasview for park_integration


Ignore:
Timestamp:
Aug 1, 2008 2:51:22 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:
b39c817
Parents:
9198b83
Message:

add more tests

Location:
park_integration/test
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/test/test_large_model.py

    r30c6721 rcfe97ea  
    1414        from sans.fit.Loader import Load 
    1515        load= Load() 
    16         load.set_filename("testdata_line.txt") 
     16        load.set_filename("cyl_testdata.txt") 
    1717        load.set_values() 
    1818        data1 = Data1D(x=[], y=[],dx=None, dy=None) 
     
    3131        from sans.models.CylinderModel import CylinderModel 
    3232        model1  = CylinderModel() 
    33         model2  = CylinderModel() 
     33        #model2  = CylinderModel() 
    3434         
    3535        #Do the fit SCIPY 
    3636        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) 
    3841         
    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) 
    4144         
    4245        chisqr1, out1, cov1=fitter.fit() 
Note: See TracChangeset for help on using the changeset viewer.