Changeset 2f0c07d in sasmodels for sasmodels/generate.py
- Timestamp:
- Mar 16, 2016 3:07:15 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 3a45c2c
- Parents:
- a98958b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/generate.py
r91c5fdc r2f0c07d 672 672 * *tests* is a set of tests that must pass 673 673 * *source* is the list of library files to include in the C model build 674 * *Iq*, *Iqxy*, *form_volume*, *ER*, and *VR* are python functions674 * *Iq*, *Iqxy*, *form_volume*, *ER*, *VR* and *sesans* are python functions 675 675 implementing the kernel for the module, or None if they are not 676 676 defined in python … … 682 682 *model_info* blocks for the composition objects. This allows us to 683 683 build complete product and mixture models from just the info. 684 684 685 """ 685 686 # TODO: maybe turn model_info into a class ModelDefinition … … 710 711 ) 711 712 process_parameters(model_info) 712 # Fill in availablefunctions713 model_info.update((k, getattr(kernel_module, k, None))714 for k in ('ER', 'VR', 'form_volume', 'Iq', 'Iqxy'))713 # Check for optional functions 714 functions = "ER VR form_volume Iq Iqxy shape sesans".split() 715 model_info.update((k, getattr(kernel_module, k, None)) for k in functions) 715 716 return model_info 716 717
Note: See TracChangeset
for help on using the changeset viewer.