Changeset 32398dc in sasmodels for sasmodels/compare_many.py
- Timestamp:
- Nov 29, 2017 8:23:16 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- fa79f5c
- Parents:
- e65c3ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare_many.py
rf72d70a r32398dc 22 22 from .compare import (randomize_pars, suppress_pd, make_data, 23 23 make_engine, get_pars, columnize, 24 constrain_pars , constrain_new_to_old)24 constrain_pars) 25 25 26 26 MODELS = core.list_models() … … 80 80 'double!': 5e-14, 81 81 'quad!': 5e-18, 82 'sasview': 5e-14,83 82 } 84 83 def compare_instance(name, data, index, N=1, mono=True, cutoff=1e-5, 85 base='s asview', comp='double'):84 base='single', comp='double'): 86 85 r""" 87 86 Compare the model under different calculation engines. … … 164 163 print("Model %s %d"%(name, k+1), file=sys.stderr) 165 164 seed = np.random.randint(1e6) 166 pars_i = randomize_pars(model_info, pars, seed) 165 np.random.seed(seed) 166 pars_i = randomize_pars(model_info, pars) 167 167 constrain_pars(model_info, pars_i) 168 if 'sasview' in (base, comp):169 constrain_new_to_old(model_info, pars_i)170 168 if mono: 171 169 pars_i = suppress_pd(pars_i)
Note: See TracChangeset
for help on using the changeset viewer.