Changeset 2d81cfe in sasmodels for sasmodels/models/triaxial_ellipsoid.py
- Timestamp:
- Nov 29, 2017 11:13:23 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 237b800f
- Parents:
- a839b22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/triaxial_ellipsoid.py
r31df0c9 r2d81cfe 126 126 """ 127 127 128 import numpy as np 128 129 from numpy import inf, sin, cos, pi 129 130 … … 174 175 175 176 def random(): 176 import numpy as np177 177 a, b, c = 10**np.random.uniform(1, 4.7, size=3) 178 178 pars = dict( … … 201 201 qx = q*cos(pi/6.0) 202 202 qy = q*sin(pi/6.0) 203 tests = [[{}, 0.05, 24.8839548033], 204 [{'theta':80., 'phi':10.}, (qx, qy), 166.712060266 ], 205 ] 203 tests = [ 204 [{}, 0.05, 24.8839548033], 205 [{'theta':80., 'phi':10.}, (qx, qy), 166.712060266], 206 ] 206 207 del qx, qy # not necessary to delete, but cleaner
Note: See TracChangeset
for help on using the changeset viewer.