Changeset 87c722e in sasmodels for compare.py
- Timestamp:
- Feb 13, 2015 4:37:09 PM (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:
- f5b9a6b
- Parents:
- be802cb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
compare.py
r216a9e1 r87c722e 20 20 modelname, pars = revert_model(modelname, pars) 21 21 #print "new",sorted(pars.items()) 22 sa ns = __import__('sans.models.'+modelname)23 ModelClass = getattr(getattr(sa ns.models,modelname,None),modelname,None)22 sas = __import__('sas.models.'+modelname) 23 ModelClass = getattr(getattr(sas.models,modelname,None),modelname,None) 24 24 if ModelClass is None: 25 raise ValueError("could not find model %r in sa ns.models"%modelname)25 raise ValueError("could not find model %r in sas.models"%modelname) 26 26 model = ModelClass() 27 27 … … 423 423 return 'triaxial_ellipsoid', pars 424 424 425 @model('sphpy') 426 def 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 425 435 @model('sph') 426 436 def sphere():
Note: See TracChangeset
for help on using the changeset viewer.