Changeset 6831fa0 in sasmodels for sasmodels/compare.py
- Timestamp:
- Oct 14, 2016 3:18:34 PM (8 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:
- b716cc6
- Parents:
- 87bc707
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
r9068f4c r6831fa0 38 38 from . import core 39 39 from . import kerneldll 40 from . import weights40 from . import exception 41 41 from .data import plot_theory, empty_data1D, empty_data2D 42 42 from .direct_model import DirectModel … … 45 45 try: 46 46 from typing import Optional, Dict, Any, Callable, Tuple 47 except :47 except Exception: 48 48 pass 49 49 else: … … 466 466 if k.endswith('.type'): 467 467 par = k[:-5] 468 if v == 'gaussian': continue 468 469 cls = dispersers[v if v != 'rectangle' else 'rectangula'] 469 470 handle = cls() 470 471 model[0].disperser_handles[par] = handle 471 model[0].set_dispersion(par, handle) 472 try: 473 model[0].set_dispersion(par, handle) 474 except Exception: 475 exception.annotate_exception("while setting %s to %r" 476 %(par, v)) 477 raise 478 472 479 473 480 #print("sasview pars",oldpars)
Note: See TracChangeset
for help on using the changeset viewer.