Changeset b297ba9 in sasmodels for sasmodels/models/core_shell_parallelepiped.py
- Timestamp:
- Mar 20, 2019 5:03:50 PM (5 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 4e28511
- Parents:
- 0d362b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/core_shell_parallelepiped.py
r99658f6 rb297ba9 173 173 from Proquest <http://search.proquest.com/docview/304915826?accountid 174 174 =26379>`_ 175 L. Onsager, Ann. New York Acad. Sci. 51, 627-659 (1949). 175 L. Onsager, Ann. New York Acad. Sci. 51, 627-659 (1949). 176 176 177 177 Authorship and Verification … … 186 186 187 187 import numpy as np 188 from numpy import pi, inf, sqrt, cos, sin188 from numpy import inf 189 189 190 190 name = "core_shell_parallelepiped" … … 229 229 have_Fq = True 230 230 effective_radius_type = [ 231 "equivalent cylinder excluded volume", 231 "equivalent cylinder excluded volume", 232 232 "equivalent volume sphere", 233 233 "half outer length_a", "half outer length_b", "half outer length_c", … … 237 237 238 238 def random(): 239 """Return a random parameter set for the model.""" 239 240 outer = 10**np.random.uniform(1, 4.7, size=3) 240 241 thick = np.random.beta(0.5, 0.5, size=3)*(outer-2) + 1 … … 269 270 # 2d values not tested against other codes or models 270 271 if 0: # pak: model rewrite; need to update tests 271 qx, qy = 0.2 * cos(pi/6.), 0.2 * sin(pi/6.)272 qx, qy = 0.2 * np.cos(np.pi/6.), 0.2 * np.sin(np.pi/6.) 272 273 tests = [[{}, 0.2, 0.533149288477], 273 274 [{}, [0.2], [0.533149288477]],
Note: See TracChangeset
for help on using the changeset viewer.