Changeset 99e6860 in sasmodels for sasmodels/convert.py
- Timestamp:
- Feb 20, 2015 5:33:18 AM (9 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:
- 80768fc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/convert.py
rfd1c792 r99e6860 54 54 Convert model from new style parameter names to old style. 55 55 """ 56 sasmodels =__import__('sasmodels.models.'+name)57 newmodel = getattr(sasmodels.models, name, None)58 mapping = newmodel.oldpars59 oldname = newmodel.oldname56 __import__('sasmodels.models.'+name) 57 model = getattr(sasmodels.models, name, None) 58 mapping = model.oldpars 59 oldname = model.oldname 60 60 oldpars = _rename_pars(_unscale_sld(pars), mapping) 61 61 return oldname, oldpars
Note: See TracChangeset
for help on using the changeset viewer.