Changeset db03406 in sasmodels for sasmodels/modelinfo.py
- Timestamp:
- Dec 1, 2017 2:36:52 PM (6 years ago)
- Children:
- 13cf47a
- Parents:
- 791281c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/modelinfo.py
r2d81cfe rdb03406 12 12 from os.path import abspath, basename, splitext 13 13 import inspect 14 import logging 14 15 15 16 import numpy as np # type: ignore 17 18 from . import autoc 16 19 17 20 # Optional typing … … 32 35 TestCondition = Tuple[ParameterSetUser, TestInput, TestValue] 33 36 # pylint: enable=unused-import 37 38 logger = logging.getLogger(__name__) 34 39 35 40 # If MAX_PD changes, need to change the loop macros in kernel_iq.c … … 789 794 info.structure_factor = getattr(kernel_module, 'structure_factor', False) 790 795 info.profile_axes = getattr(kernel_module, 'profile_axes', ['x', 'y']) 796 info.c_code = getattr(kernel_module, 'c_code', None) 791 797 info.source = getattr(kernel_module, 'source', []) 792 798 # TODO: check the structure of the tests … … 812 818 813 819 _find_source_lines(info, kernel_module) 820 try: 821 autoc.convert(info, kernel_module) 822 except Exception as exc: 823 raise 824 logger.warn(str(exc)) 814 825 815 826 return info … … 935 946 #: See :attr:`ER` for details on the parameters. 936 947 VR = None # type: Optional[Callable[[np.ndarray], Tuple[np.ndarray, np.ndarray]]] 948 #: Arbitrary C code containing supporting functions, etc., to be inserted 949 #: after everything in source. This can include Iq and Iqxy functions with 950 #: the full function signature, including all parameters. 951 c_code = None 937 952 #: Returns the form volume for python-based models. Form volume is needed 938 953 #: for volume normalization in the polydispersity integral. If no
Note: See TracChangeset
for help on using the changeset viewer.