Changeset 143e2f7 in sasmodels
 Timestamp:
 Feb 19, 2015 7:28:44 PM (9 years ago)
 Branches:
 master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket1257vesicleproduct, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
 Children:
 cd55ac3
 Parents:
 ab55943
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

sasmodels/models/cylinder.py
r1ed9e3f r143e2f7 108 108 """ 109 109 110 import numpy as np 110 111 from numpy import pi, inf 111 112 … … 182 183 # Precision defaults to 7 digits (relative) for single, 14 for double 183 184 # May want a limited precision version that checks for 8n or 15n digits respectively 185 qx,qy = 0.2*np.cos(2.5), 0.2*np.sin(2.5) 184 186 tests = [ 185 187 [{}, 0.2, 0.041761386790780453], 186 188 [{}, [0.2], [0.041761386790780453]], 187 [{'theta':10.0, 'phi':10.0}, ( 0.2, 2.5), 0.038176446608393366],188 [{'theta':10.0, 'phi':10.0}, [( 0.2, 2.5)], [0.038176446608393366]],189 [{'theta':10.0, 'phi':10.0}, (qx, qy), 0.03414647218513852], 190 [{'theta':10.0, 'phi':10.0}, [(qx, qy)], [0.03414647218513852]], 189 191 ] 190 192 del qx,qy # not necessary to delete, but cleaner
Note: See TracChangeset
for help on using the changeset viewer.