Changeset 2d81cfe in sasmodels for sasmodels/details.py
- Timestamp:
- Nov 29, 2017 11:13:23 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:
- 237b800f
- Parents:
- a839b22
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/details.py
r110f69c r2d81cfe 15 15 16 16 import numpy as np # type: ignore 17 from numpy import pi,cos, sin, radians17 from numpy import cos, sin, radians 18 18 19 19 try: … … 29 29 return [np.asarray(v) for v in args] 30 30 31 # pylint: disable=unused-import 31 32 try: 32 33 from typing import List, Tuple, Sequence … … 36 37 from .modelinfo import ModelInfo 37 38 from .modelinfo import ParameterTable 39 # pylint: enable=unused-import 38 40 39 41 … … 220 222 221 223 ZEROS = tuple([0.]*31) 222 def make_kernel_args(kernel, mesh): 223 # type: (Kernel, Tuple[List[np.ndarray], List[np.ndarray]]) -> Tuple[CallDetails, np.ndarray, bool] 224 def make_kernel_args(kernel, # type: Kernel 225 mesh # type: Tuple[List[np.ndarray], List[np.ndarray]] 226 ): 227 # type: (...) -> Tuple[CallDetails, np.ndarray, bool] 224 228 """ 225 229 Converts (value, dispersity, weight) for each parameter into kernel pars. … … 248 252 return call_details, data, is_magnetic 249 253 250 def correct_theta_weights(parameters, dispersity, weights): 251 # type: (ParameterTable, Sequence[np.ndarray], Sequence[np.ndarray]) -> Sequence[np.ndarray] 254 def correct_theta_weights(parameters, # type: ParameterTable 255 dispersity, # type: Sequence[np.ndarray] 256 weights # type: Sequence[np.ndarray] 257 ): 258 # type: (...) -> Sequence[np.ndarray] 252 259 """ 253 260 If there is a theta parameter, update the weights of that parameter so that
Note: See TracChangeset
for help on using the changeset viewer.