Changeset 99e6860 in sasmodels
- Timestamp:
- Feb 20, 2015 5:33:18 AM (10 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
- Location:
- sasmodels
- Files:
-
- 2 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 -
sasmodels/generate.py
rae7b97b r99e6860 187 187 # TODO: identify model files which have changed since loading and reload them. 188 188 189 __all__ = ["make ,doc", "sources", "use_single"]189 __all__ = ["make", "doc", "sources", "use_single"] 190 190 191 191 import sys … … 266 266 # define local 267 267 # define constant const 268 # define powr(a,b) pow(a,b)269 268 #else 270 269 # ifdef USE_SINCOS … … 273 272 # define SINCOS(angle,svar,cvar) do {svar=sin(angle);cvar=cos(angle);} while (0) 274 273 # endif 274 # define pow(a,b) powr(a,b) 275 275 #endif 276 276
Note: See TracChangeset
for help on using the changeset viewer.