Changeset 9c44b7b in sasmodels for sasmodels/modelinfo.py
- Timestamp:
- Mar 9, 2017 4:42:21 PM (7 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:
- 3a45c2c
- Parents:
- 68f45cb (diff), 0011ecc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/modelinfo.py
rf88e248 r9c44b7b 734 734 info.docs = kernel_module.__doc__ 735 735 info.category = getattr(kernel_module, 'category', None) 736 info.single = getattr(kernel_module, 'single', True)737 info.opencl = getattr(kernel_module, 'opencl', True)738 736 info.structure_factor = getattr(kernel_module, 'structure_factor', False) 739 737 info.profile_axes = getattr(kernel_module, 'profile_axes', ['x', 'y']) … … 749 747 info.profile = getattr(kernel_module, 'profile', None) # type: ignore 750 748 info.sesans = getattr(kernel_module, 'sesans', None) # type: ignore 749 # Default single and opencl to True for C models. Python models have callable Iq. 750 info.opencl = getattr(kernel_module, 'opencl', not callable(info.Iq)) 751 info.single = getattr(kernel_module, 'single', not callable(info.Iq)) 751 752 752 753 # multiplicity info
Note: See TracChangeset
for help on using the changeset viewer.