Changeset f247314 in sasmodels for sasmodels/generate.py
- Timestamp:
- Apr 4, 2016 3:23:23 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:
- ec45c4f
- Parents:
- 204fd9b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/generate.py
r9ef9dd9 rf247314 153 153 parameter list. *demo* is mostly needed to set the default 154 154 polydispersity values for tests. 155 156 *oldname* is the name of the model in sasview before sasmodels157 was split into its own package, and *oldpars* is a dictionary158 of *parameter: old_parameter* pairs defining the new names for159 the parameters. This is used by *compare* to check the values160 of the new model against the values of the old model before161 you are ready to add the new model to sasmodels.162 163 155 164 156 An *model_info* dictionary is constructed from the kernel meta data and … … 692 684 implementing the kernel for the module, or None if they are not 693 685 defined in python 694 * *oldname* is the model name in pre-4.0 Sasview695 * *oldpars* is the *{new: old}* parameter translation table696 from pre-4.0 Sasview697 686 * *composition* is None if the model is independent, otherwise it is a 698 687 tuple with composition type ('product' or 'mixture') and a list of … … 723 712 demo=getattr(kernel_module, 'demo', None), 724 713 source=getattr(kernel_module, 'source', []), 725 oldname=getattr(kernel_module, 'oldname', None),726 oldpars=getattr(kernel_module, 'oldpars', {}),727 714 tests=getattr(kernel_module, 'tests', []), 728 715 )
Note: See TracChangeset
for help on using the changeset viewer.