Changeset 87c722e in sasmodels for compare.py


Ignore:
Timestamp:
Feb 13, 2015 4:37:09 PM (10 years ago)
Author:
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:
f5b9a6b
Parents:
be802cb
Message:

use sas instead of sans

File:
1 edited

Legend:

Unmodified
Added
Removed
  • compare.py

    r216a9e1 r87c722e  
    2020    modelname, pars = revert_model(modelname, pars) 
    2121    #print "new",sorted(pars.items()) 
    22     sans = __import__('sans.models.'+modelname) 
    23     ModelClass = getattr(getattr(sans.models,modelname,None),modelname,None) 
     22    sas = __import__('sas.models.'+modelname) 
     23    ModelClass = getattr(getattr(sas.models,modelname,None),modelname,None) 
    2424    if ModelClass is None: 
    25         raise ValueError("could not find model %r in sans.models"%modelname) 
     25        raise ValueError("could not find model %r in sas.models"%modelname) 
    2626    model = ModelClass() 
    2727 
     
    423423    return 'triaxial_ellipsoid', pars 
    424424 
     425@model('sphpy') 
     426def spherepy(): 
     427    pars = dict( 
     428        scale=1, background=0, 
     429        sld=6, solvent_sld=1, 
     430        radius=120, 
     431        radius_pd=.2, radius_pd_n=45, 
     432        ) 
     433    return 'spherepy', pars 
     434 
    425435@model('sph') 
    426436def sphere(): 
Note: See TracChangeset for help on using the changeset viewer.