Changeset f247314 in sasmodels for sasmodels/generate.py


Ignore:
Timestamp:
Apr 4, 2016 3:23:23 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

use sasmodels/convert.json for converting new models to old

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/generate.py

    r9ef9dd9 rf247314  
    153153    parameter list.  *demo* is mostly needed to set the default 
    154154    polydispersity values for tests. 
    155  
    156     *oldname* is the name of the model in sasview before sasmodels 
    157     was split into its own package, and *oldpars* is a dictionary 
    158     of *parameter: old_parameter* pairs defining the new names for 
    159     the parameters.  This is used by *compare* to check the values 
    160     of the new model against the values of the old model before 
    161     you are ready to add the new model to sasmodels. 
    162  
    163155 
    164156An *model_info* dictionary is constructed from the kernel meta data and 
     
    692684      implementing the kernel for the module, or None if they are not 
    693685      defined in python 
    694     * *oldname* is the model name in pre-4.0 Sasview 
    695     * *oldpars* is the *{new: old}* parameter translation table 
    696       from pre-4.0 Sasview 
    697686    * *composition* is None if the model is independent, otherwise it is a 
    698687      tuple with composition type ('product' or 'mixture') and a list of 
     
    723712        demo=getattr(kernel_module, 'demo', None), 
    724713        source=getattr(kernel_module, 'source', []), 
    725         oldname=getattr(kernel_module, 'oldname', None), 
    726         oldpars=getattr(kernel_module, 'oldpars', {}), 
    727714        tests=getattr(kernel_module, 'tests', []), 
    728715        ) 
Note: See TracChangeset for help on using the changeset viewer.