Changeset b297ba9 in sasmodels for sasmodels/models/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/parallelepiped.py
r99658f6 rb297ba9 180 180 14 (1961) 185-211 181 181 .. [#] R Nayuk and K Huber, *Z. Phys. Chem.*, 226 (2012) 837-854 182 L. Onsager, Ann. New York Acad. Sci. 51, 627-659 (1949). 182 L. Onsager, Ann. New York Acad. Sci. 51, 627-659 (1949). 183 183 184 184 Authorship and Verification … … 192 192 193 193 import numpy as np 194 from numpy import pi, inf, sqrt, sin, cos194 from numpy import inf 195 195 196 196 name = "parallelepiped" … … 233 233 have_Fq = True 234 234 effective_radius_type = [ 235 "equivalent cylinder excluded volume", "equivalent volume sphere", 235 "equivalent cylinder excluded volume", "equivalent volume sphere", 236 236 "half length_a", "half length_b", "half length_c", 237 237 "equivalent circular cross-section", "half ab diagonal", "half diagonal", … … 239 239 240 240 def random(): 241 """Return a random parameter set for the model.""" 241 242 length = 10**np.random.uniform(1, 4.7, size=3) 242 243 pars = dict( … … 261 262 # rkh 7/4/17 add random unit test for 2d, note make all params different, 262 263 # 2d values not tested against other codes or models 263 qx, qy = 0.2 * cos(pi/6.), 0.2 * sin(pi/6.)264 qx, qy = 0.2 * np.cos(np.pi/6.), 0.2 * np.sin(np.pi/6.) 264 265 tests = [[{}, 0.2, 0.17758004974], 265 266 [{}, [0.2], [0.17758004974]],
Note: See TracChangeset
for help on using the changeset viewer.