Changeset 99e6860 in sasmodels for sasmodels/convert.py


Ignore:
Timestamp:
Feb 20, 2015 5:33:18 AM (9 years ago)
Author:
David Mannicke <davidm@…>
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:
80768fc
Message:

minor bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/convert.py

    rfd1c792 r99e6860  
    5454    Convert model from new style parameter names to old style. 
    5555    """ 
    56     sasmodels = __import__('sasmodels.models.'+name) 
    57     newmodel = getattr(sasmodels.models, name, None) 
    58     mapping = newmodel.oldpars 
    59     oldname = newmodel.oldname 
     56    __import__('sasmodels.models.'+name) 
     57    model = getattr(sasmodels.models, name, None) 
     58    mapping = model.oldpars 
     59    oldname = model.oldname 
    6060    oldpars = _rename_pars(_unscale_sld(pars), mapping) 
    6161    return oldname, oldpars 
Note: See TracChangeset for help on using the changeset viewer.