Changeset ae7d639 in sasmodels for fit.py


Ignore:
Timestamp:
Aug 8, 2014 2:55:23 PM (11 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:
a953943
Parents:
1726b21
Message:

Ellipse now MUCH faster!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fit.py

    r1726b21 rae7d639  
    88from Models.code_cylinder_f import GpuCylinder 
    99#from Models.code_cylinder import GpuCylinder, OneDGpuCylinder 
    10 from Models.code_ellipse import GpuEllipse 
     10from Models.code_ellipse_f import GpuEllipse 
    1111from Models.code_lamellar import GpuLamellar 
    1212from Models.code_triaxialellipse import GpuTriEllipse 
     
    3131 
    3232 
    33 if 0: 
     33if 1: 
    3434    model = SasModel(data, GpuEllipse, 
    3535    scale=0.08, 
     
    4141    radius_a_pd=0.222296, radius_a_pd_n=1, radius_a_pd_nsigma=0, 
    4242    radius_b_pd=.000128, radius_b_pd_n=1, radius_b_pd_nsigma=0, 
    43     axis_phi_pd=2.63698e-05, axis_phi_pd_n=20, axis_phi_pd_nsigma=0, 
     43    axis_phi_pd=2.63698e-05, axis_phi_pd_n=20, axis_phi_pd_nsigma=3, 
    4444    dtype='float32') 
    4545 
    4646 
    4747    # SET THE FITTING PARAMETERS 
    48     model.radius_a.range(15, 1000) 
    49     model.radius_b.range(15, 1000) 
     48    #model.radius_a.range(15, 1000) 
     49    #model.radius_b.range(15, 1000) 
    5050    #model.axis_theta_pd.range(0, 360) 
    5151    #model.background.range(0,1000) 
    52     #model.scale.range(0, 1) 
     52    model.scale.range(0, 1) 
    5353 
    5454 
     
    7070 
    7171 
    72 if 1: 
     72if 0: 
    7373    """ 
    7474    pars = dict(scale=0.0023, radius=92.5, length=798.3, 
Note: See TracChangeset for help on using the changeset viewer.