Changeset 8e36cdd in sasview for sansmodels/src/sans/models/test
- Timestamp:
- Aug 20, 2009 11:24:23 AM (15 years ago)
- 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
- Location:
- sansmodels/src/sans/models/test
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/sans/models/test/validate_2D_3axes_shape_model.py
r27953d1 r8e36cdd 25 25 Averaging the 3-axes 2D scattering intensity give a slightly 26 26 different output than the 1D function 27 at hight Q (Q>~0. 1). This is due(?) to the way the IGOR library27 at hight Q (Q>~0.2). This is due(?) to the way the IGOR library 28 28 averages, taking only 76 points in alpha, the angle between 29 29 the axis of the ellipsoid and the q vector. … … 81 81 psi_label = 'axis_psi' 82 82 83 output_f = open("%s_avg 1.txt" % model.__class__.__name__,'w')83 output_f = open("%s_avg.txt" % model.__class__.__name__,'w') 84 84 output_f.write("<q_average> <2d_average> <1d_average>\n") 85 85 86 for i_q in range(1, 30):86 for i_q in range(1, 40): 87 87 q = 0.01*i_q 88 88 sum = 0.0 … … 114 114 if __name__ == '__main__': 115 115 validator = Validate2D() 116 116 117 #te was not passed. 117 118 te_passed =validator(TriaxialEllipsoidModel, points=76) 118 119 pp_passed = validator(ParallelepipedModel, points=76) … … 122 123 print "Model Passed" 123 124 print "TriaxialEllipsoid %s" % te_passed 125 print "ParallelepipedModel %s" % pp_passed 124 126 print "EllipticalCylinder %s" % ell_passed 125 print "ParallelepipedModel %s" % pp_passed126 127 127 128
Note: See TracChangeset
for help on using the changeset viewer.