Changeset 48462b0 in sasmodels for sasmodels/models/guinier.py
- Timestamp:
- Jul 30, 2017 11:24:42 PM (7 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 109d963
- Parents:
- 404ebbd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/guinier.py
r404ebbd r48462b0 51 51 def random(): 52 52 import numpy as np 53 scale = 10**np.random.uniform(1, 5) 54 # Note: compare.py has rg cutoff for guinier, so use that 53 scale = 10**np.random.uniform(1, 4) 54 # Note: compare.py has Rg cutoff of 1e-30 at q=1 for guinier, so use that 55 # log_10 Ae^(-(q Rg)^2/3) = log_10(A) - (q Rg)^2/ (3 ln 10) > -30 56 # => log_10(A) > Rg^2/(3 ln 10) - 30 55 57 q_max = 1.0 56 58 rg_max = np.sqrt(90*np.log(10) + 3*np.log(scale))/q_max
Note: See TracChangeset
for help on using the changeset viewer.