Changeset 99e6860 in sasmodels


Ignore:
Timestamp:
Feb 20, 2015 5:33:18 AM (10 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

Location:
sasmodels
Files:
2 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 
  • sasmodels/generate.py

    rae7b97b r99e6860  
    187187# TODO: identify model files which have changed since loading and reload them. 
    188188 
    189 __all__ = ["make, doc", "sources", "use_single"] 
     189__all__ = ["make", "doc", "sources", "use_single"] 
    190190 
    191191import sys 
     
    266266#  define local 
    267267#  define constant const 
    268 #  define powr(a,b) pow(a,b) 
    269268#else 
    270269#  ifdef USE_SINCOS 
     
    273272#    define SINCOS(angle,svar,cvar) do {svar=sin(angle);cvar=cos(angle);} while (0) 
    274273#  endif 
     274#  define pow(a,b) powr(a,b) 
    275275#endif 
    276276 
Note: See TracChangeset for help on using the changeset viewer.