Changeset 2d81cfe in sasmodels for sasmodels/models/core_shell_cylinder.py
- Timestamp:
- Nov 29, 2017 1:13:23 PM (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/core_shell_cylinder.py
r9f6823b r2d81cfe 73 73 """ 74 74 75 import numpy as np 75 76 from numpy import pi, inf, sin, cos 76 77 … … 119 120 ["theta", "degrees", 60, [-360, 360], "orientation", 120 121 "cylinder axis to beam angle"], 121 ["phi", "degrees", 122 ["phi", "degrees", 60, [-360, 360], "orientation", 122 123 "rotation about beam"], 123 124 ] … … 143 144 144 145 def random(): 145 import numpy as np146 146 outer_radius = 10**np.random.uniform(1, 4.7) 147 147 # Use a distribution with a preference for thin shell or thin core … … 170 170 qx = q*cos(pi/6.0) 171 171 qy = q*sin(pi/6.0) 172 tests = [[{}, 0.075, 10.8552692237], 173 [{}, (qx, qy), 0.444618752741 ], 174 ] 172 tests = [ 173 [{}, 0.075, 10.8552692237], 174 [{}, (qx, qy), 0.444618752741], 175 ] 175 176 del qx, qy # not necessary to delete, but cleaner
Note: See TracChangeset
for help on using the changeset viewer.