Changeset 0bdddc2 in sasmodels for sasmodels/models/adsorbed_layer.py
- Timestamp:
- Jul 28, 2017 8:59:19 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:
- a151caa
- Parents:
- 72be531
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/adsorbed_layer.py
rb0c4271 r0bdddc2 94 94 Iq.vectorized = True # Iq accepts an array of q values 95 95 96 def random(): 97 # only care about the value of second_moment: 98 # curve = scale * e**(-second_moment^2 q^2)/q^2 99 # scale = 6 pi/100 (contrast/density*absorbed_amount)^2 * Vf/radius 100 # the remaining parameters can be randomly generated from zero to 101 # twice the default value. 102 import numpy as np 103 pars = dict( 104 scale=1, 105 second_moment=10**np.random.uniform(1, 3), 106 ) 107 return pars 108 96 109 # unit test values taken from SasView 3.1.2 97 110 tests = [
Note: See TracChangeset
for help on using the changeset viewer.