Changeset 31df0c9 in sasmodels for sasmodels/models/fuzzy_sphere.py
- Timestamp:
- Aug 1, 2017 2:38:47 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:
- 1511c37c
- Parents:
- d49ca5c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/models/fuzzy_sphere.py
r925ad6e r31df0c9 105 105 # VR defaults to 1.0 106 106 107 def random(): 108 import numpy as np 109 radius = 10**np.random.uniform(1, 4.7) 110 fuzziness = 10**np.random.uniform(-2, -0.5)*radius # 1% to 31% fuzziness 111 pars = dict( 112 radius=radius, 113 fuzziness=fuzziness, 114 ) 115 return pars 116 107 117 demo = dict(scale=1, background=0.001, 108 118 sld=1, sld_solvent=3,
Note: See TracChangeset
for help on using the changeset viewer.