Changeset d9ec8f9 in sasmodels
- Timestamp:
- Aug 7, 2017 4:56:57 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:
- c95d9255
- Parents:
- 92708d8
- Location:
- sasmodels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
r4553dae rd9ec8f9 79 79 === model parameters === 80 80 -preset*/-random[=seed] preset or random parameters 81 -sets=n generates n random datasets ,with the seed given by -random=seed81 -sets=n generates n random datasets with the seed given by -random=seed 82 82 -pars/-nopars* prints the parameter set or not 83 83 -default/-demo* use demo vs default parameters … … 1140 1140 'title' : None, 1141 1141 'datafile' : None, 1142 'sets' : 1,1142 'sets' : 0, 1143 1143 'engine' : 'default', 1144 1144 'evals' : '1', … … 1199 1199 opts['is2d'] = True 1200 1200 1201 # Force random if more than one set1202 if opts['sets'] > 1 and opts['seed'] < 0:1201 # Force random if sets is used 1202 if opts['sets'] >= 1 and opts['seed'] < 0: 1203 1203 opts['seed'] = np.random.randint(1000000) 1204 if opts['sets'] == 0: 1205 opts['sets'] = 1 1204 1206 1205 1207 # Create the computational engines -
sasmodels/models/elliptical_cylinder.py
r8c89d06 rd9ec8f9 162 162 V = 10**np.random.uniform(3, 9) 163 163 length = 10**np.random.uniform(1, 3) 164 axis_ratio = 10**np.random.uniform( -2, 2)164 axis_ratio = 10**np.random.uniform(0, 2) 165 165 radius_minor = np.sqrt(V/length/axis_ratio) 166 166 Vf = 10**np.random.uniform(-4, -2)
Note: See TracChangeset
for help on using the changeset viewer.