Changeset f4f3919 in sasmodels
- Timestamp:
- Dec 21, 2015 11:29:34 AM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 5258859
- Parents:
- e97170c
- Location:
- sasmodels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
r9a66e65 rf4f3919 148 148 models more quickly. 149 149 """ 150 pars = pars.copy() 150 151 for p in pars: 151 152 if p.endswith("_pd"): pars[p] = 0 153 return pars 152 154 153 155 def eval_sasview(model_definition, pars, data, Nevals=1): … … 190 192 platform="ocl", fast=fast) 191 193 calculator = DirectModel(data, model, cutoff=cutoff) 192 value = None # silence the linter 194 # Run the calculator once before starting the timing loop 195 value = calculator(**suppress_pd(pars)) 196 # Now run the timing loop 193 197 toc = tic() 194 198 for _ in range(max(Nevals, 1)): # force at least one eval … … 201 205 model = core.load_model(model_definition, dtype=dtype, platform="dll") 202 206 calculator = DirectModel(data, model, cutoff=cutoff) 203 value = None # silence the linter 207 # Run the calculator once before starting the timing loop 208 value = calculator(**suppress_pd(pars)) 209 # Now run the timing loop 204 210 toc = tic() 205 211 for _ in range(max(Nevals, 1)): # force at least one eval … … 268 274 # parameter selection 269 275 if '-mono' in opts: 270 suppress_pd(pars)276 pars = suppress_pd(pars) 271 277 if '-pars' in opts: 272 278 print("pars "+str(parlist(pars))) -
sasmodels/compare_many.py
r9a66e65 rf4f3919 75 75 constrain_pars(model_definition, pars_i) 76 76 constrain_new_to_old(model_definition, pars_i) 77 if mono: suppress_pd(pars_i) 77 if mono: 78 pars_i = suppress_pd(pars_i) 78 79 79 80 good = [True]
Note: See TracChangeset
for help on using the changeset viewer.