Changeset b297ba9 in sasmodels for sasmodels/models/hollow_rectangular_prism.py
- Timestamp:
- Mar 20, 2019 7: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/hollow_rectangular_prism.py
r99658f6 rb297ba9 98 98 99 99 .. [#Nayuk2012] R Nayuk and K Huber, *Z. Phys. Chem.*, 226 (2012) 837-854 100 L. Onsager, Ann. New York Acad. Sci. 51, 627-659 (1949). 100 L. Onsager, Ann. New York Acad. Sci. 51, 627-659 (1949). 101 101 102 102 … … 110 110 111 111 import numpy as np 112 from numpy import pi, inf, sqrt112 from numpy import inf 113 113 114 114 name = "hollow_rectangular_prism" … … 151 151 have_Fq = True 152 152 effective_radius_type = [ 153 "equivalent cylinder excluded volume", "equivalent outer volume sphere", 153 "equivalent cylinder excluded volume", "equivalent outer volume sphere", 154 154 "half length_a", "half length_b", "half length_c", 155 155 "equivalent outer circular cross-section", … … 158 158 159 159 def random(): 160 """Return a random parameter set for the model.""" 160 161 a, b, c = 10**np.random.uniform(1, 4.7, size=3) 161 162 # Thickness is limited to 1/2 the smallest dimension
Note: See TracChangeset
for help on using the changeset viewer.