Changeset 2d81cfe in sasmodels for sasmodels/direct_model.py
- Timestamp:
- Nov 29, 2017 1:13:23 PM (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:
- 237b800f
- Parents:
- a839b22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/direct_model.py
rfa79f5c r2d81cfe 32 32 from .details import make_kernel_args, dispersion_mesh 33 33 34 # pylint: disable=unused-import 34 35 try: 35 36 from typing import Optional, Dict, Tuple … … 40 41 from .kernel import Kernel, KernelModel 41 42 from .modelinfo import Parameter, ParameterSet 43 # pylint: enable=unused-import 42 44 43 45 def call_kernel(calculator, pars, cutoff=0., mono=False): … … 163 165 nsigma = values.get(parameter.name+'_pd_nsigma', 3.0) 164 166 pd = weights.get_weights(disperser, npts, width, nsigma, 165 value, limits, relative)167 value, limits, relative) 166 168 return value, pd[0], pd[1] 167 169 … … 411 413 try: 412 414 values = [float(v) for v in call.split(',')] 413 except Exception:415 except ValueError: 414 416 values = [] 415 417 if len(values) == 1:
Note: See TracChangeset
for help on using the changeset viewer.