Ignore:
Timestamp:
Aug 20, 2009 11:24:23 AM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
1d67243
Parents:
191b369
Message:

fixed and tested ppmodel 2d and cleaned it up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/test/validate_2D_3axes_shape_model.py

    r27953d1 r8e36cdd  
    2525        Averaging the 3-axes 2D scattering intensity give a slightly 
    2626        different output than the 1D function   
    27         at hight Q (Q>~0.1). This is due(?) to the way the IGOR library  
     27        at hight Q (Q>~0.2). This is due(?) to the way the IGOR library  
    2828        averages, taking only 76 points in alpha, the angle between 
    2929        the axis of the ellipsoid and the q vector. 
     
    8181            psi_label = 'axis_psi' 
    8282             
    83         output_f = open("%s_avg1.txt" % model.__class__.__name__,'w') 
     83        output_f = open("%s_avg.txt" % model.__class__.__name__,'w') 
    8484        output_f.write("<q_average> <2d_average> <1d_average>\n") 
    8585             
    86         for i_q in range(1, 30): 
     86        for i_q in range(1, 40): 
    8787            q = 0.01*i_q 
    8888            sum = 0.0 
     
    114114if __name__ == '__main__': 
    115115    validator = Validate2D() 
    116  
     116     
     117    #te was not passed. 
    117118    te_passed =validator(TriaxialEllipsoidModel, points=76) 
    118119    pp_passed = validator(ParallelepipedModel, points=76) 
     
    122123    print "Model             Passed" 
    123124    print "TriaxialEllipsoid         %s" % te_passed 
     125    print "ParallelepipedModel    %s" % pp_passed 
    124126    print "EllipticalCylinder        %s" % ell_passed 
    125     print "ParallelepipedModel    %s" % pp_passed 
    126127  
    127128         
Note: See TracChangeset for help on using the changeset viewer.