Changeset 2d81cfe in sasmodels for sasmodels/kernelpy.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/kernelpy.py
r8698a0d r2d81cfe 12 12 13 13 import numpy as np # type: ignore 14 from numpy import pi, sin, cos #type: ignore 15 16 from . import details 14 17 15 from .generate import F64 18 16 from .kernel import KernelModel, Kernel 19 17 18 # pylint: disable=unused-import 20 19 try: 21 20 from typing import Union, Callable … … 23 22 pass 24 23 else: 24 from . import details 25 25 DType = Union[None, str, np.dtype] 26 # pylint: enable=unused-import 26 27 27 28 class PyModel(KernelModel): … … 179 180 self.q_input = None 180 181 181 def _loops(parameters, form, form_volume, nq, call_details, values, cutoff): 182 # type: (np.ndarray, Callable[[], np.ndarray], Callable[[], float], int, details.CallDetails, np.ndarray, np.ndarray, float) -> None 182 def _loops(parameters, # type: np.ndarray 183 form, # type: Callable[[], np.ndarray] 184 form_volume, # type: Callable[[], float] 185 nq, # type: int 186 call_details, # type: details.CallDetails 187 values, # type: np.ndarray 188 cutoff # type: float 189 ): 190 # type: (...) -> None 183 191 ################################################################ 184 192 # #
Note: See TracChangeset
for help on using the changeset viewer.