Changeset 9a9f5b5 in sasmodels for compare.py


Ignore:
Timestamp:
Jul 22, 2014 11:16:56 AM (10 years ago)
Author:
HMP1 <helen.park@…>
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:
d772f5d
Parents:
79fcc40
Message:

Added new fit program that fits two different mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • compare.py

    r09e15be r9a9f5b5  
    1515 
    1616def sasview_model(modelname, **pars): 
    17     modelname = modelname.capitalize()+"Model" 
     17    modelname = modelname+"Model" 
    1818    sans = __import__('sans.models.'+modelname) 
    1919    ModelClass = getattr(getattr(sans.models,modelname,None),modelname,None) 
     
    5454        ) 
    5555 
    56     model = sasview_model('cylinder', **pars) 
     56    model = sasview_model('Cylinder', **pars) 
    5757    tic() 
    5858    for i in range(N): 
     
    9191                axis_phi_pd_n=6, axis_phi_pd_nsigma=3,) 
    9292 
    93     model = sasview_model('ellipsoid', **pars) 
     93    model = sasview_model('Ellipsoid', **pars) 
    9494    tic() 
    9595    for i in range(N): 
     
    130130                 length_pd=0.1, length_pd_n=1, length_pd_nsigma=0, 
    131131                 thickness_pd=0.1, thickness_pd_n=1, thickness_pd_nsigma=0, 
    132                  axis_theta_pd_n=10, axis_theta_pd_nsigma=3, 
    133                  axis_phi_pd=0.0008748, axis_phi_pd_n=10, axis_phi_pd_nsigma=3,) 
     132                 axis_theta_pd_n=20, axis_theta_pd_nsigma=3, 
     133                 axis_phi_pd=0.0008748, axis_phi_pd_n=60, axis_phi_pd_nsigma=3,) 
    134134 
    135135    model = sasview_model('CoreShellCylinder', **pars) 
Note: See TracChangeset for help on using the changeset viewer.