Changeset 2d81cfe in sasmodels for sasmodels/models/unified_power_Rg.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/unified_power_Rg.py
r48462b0 r2d81cfe 68 68 69 69 B Hammouda, *Analysis of the Beaucage model, J. Appl. Cryst.*, (2010), 43, 1474-1478 70 71 70 """ 72 71 … … 75 74 import numpy as np 76 75 from numpy import inf, exp, sqrt, errstate 77 from scipy.special import erf 76 from scipy.special import erf, gamma 78 77 79 78 category = "shape-independent" … … 119 118 120 119 def random(): 121 import numpy as np122 from scipy.special import gamma123 120 level = np.minimum(np.random.poisson(0.5) + 1, 6) 124 121 n = level
Note: See TracChangeset
for help on using the changeset viewer.