Changeset 916a15f in sasview for park_integration/test


Ignore:
Timestamp:
Sep 22, 2008 8:16:39 AM (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:
55fd102
Parents:
70975f3
Message:

changes for presentation on tests

Location:
park_integration/test
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • park_integration/test/test_fit_cylinder.py

    rca6d914 r916a15f  
    3131        fitter.set_data(data,1) 
    3232        model.model.setParam('scale',10) 
    33         fitter.set_model(model,"M1",1,pars1) 
     33        fitter.set_model(model,1,pars1) 
    3434        result1 = fitter.fit() 
    3535        print "test scipy result:",result1.stderr,result1.pvec,result1.fitness 
  • park_integration/test/test_fit_line.py

    rca6d914 r916a15f  
    136136        model11  = LineModel() 
    137137        model11.name= "line" 
     138        model11.setParam('A',4) 
     139        model11.setParam('B',3) 
    138140        model22  = Constant() 
    139141        model22.name= "cst" 
     
    179181        model1  = LineModel() 
    180182        model1.name= "M1" 
    181          
     183       
    182184        data1 = Data(sans_data=data11 ) 
    183185        data2 = Data(sans_data=data22 ) 
     
    192194        result1 = fitter.fit() 
    193195        self.assert_(result1) 
    194          
     196 
    195197        self.assertTrue( ( math.fabs(result1.pvec[0]-4)/3 == result1.stderr[0] ) or  
    196198                         ( math.fabs(result1.pvec[0]-4)/3 < result1.stderr[0]) )  
Note: See TracChangeset for help on using the changeset viewer.