Changeset ea05c87 in sasmodels for sasmodels/generate.py
- Timestamp:
- Apr 4, 2016 6:47:27 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:
- 1e2a1ba
- Parents:
- 9d96649 (diff), ec45c4f (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/generate.py
r68e7f9d rea05c87 122 122 parameter list. *demo* is mostly needed to set the default 123 123 polydispersity values for tests. 124 125 *oldname* is the name of the model in sasview before sasmodels126 was split into its own package, and *oldpars* is a dictionary127 of *parameter: old_parameter* pairs defining the new names for128 the parameters. This is used by *compare* to check the values129 of the new model against the values of the old model before130 you are ready to add the new model to sasmodels.131 132 124 133 125 An *model_info* dictionary is constructed from the kernel meta data and … … 710 702 implementing the kernel for the module, or None if they are not 711 703 defined in python 712 * *oldname* is the model name in pre-4.0 Sasview713 * *oldpars* is the *{new: old}* parameter translation table714 from pre-4.0 Sasview715 704 * *composition* is None if the model is independent, otherwise it is a 716 705 tuple with composition type ('product' or 'mixture') and a list of … … 742 731 demo=getattr(kernel_module, 'demo', None), 743 732 source=getattr(kernel_module, 'source', []), 744 oldname=getattr(kernel_module, 'oldname', None),745 oldpars=getattr(kernel_module, 'oldpars', {}),746 733 tests=getattr(kernel_module, 'tests', []), 747 734 )
Note: See TracChangeset
for help on using the changeset viewer.