Changeset 48462b0 in sasmodels for sasmodels/models/two_lorentzian.py
- Timestamp:
- Jul 31, 2017 1:24:42 AM (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/two_lorentzian.py
r2c74c11 r48462b0 93 93 Iq.vectorized = True # Iq accepts an array of q values 94 94 95 def random(): 96 import numpy as np 97 scale = 10**np.random.uniform(0, 4, 2) 98 length = 10**np.random.uniform(1, 4, 2) 99 expon = np.random.uniform(1, 6, 2) 100 101 pars = dict( 102 #background=0, 103 scale=1, # scale provided in model 104 lorentz_scale_1=scale[0], 105 lorentz_length_1=length[0], 106 lorentz_exp_1=expon[0], 107 lorentz_scale_2=scale[1], 108 lorentz_length_2=length[1], 109 lorentz_exp_2=expon[1], 110 ) 111 return pars 112 95 113 96 114 demo = dict(scale=1, background=0.1,
Note: See TracChangeset
for help on using the changeset viewer.