Changeset 099e053 in sasmodels


Ignore:
Timestamp:
Jul 24, 2014 3:48:06 PM (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:
a42fec0
Parents:
ca6c007
Message:

further organizing

Files:
13 added
2 edited

Legend:

Unmodified
Added
Removed
  • fit.py

    rca6c007 r099e053  
    3232uplim=90) #bottom limit, upper limit of angle integral 
    3333""" 
     34""" 
     35model = SasModel(data, GpuEllipse, 
     36scale=0.08, 
     37radius_a=15, radius_b=200, 
     38sldEll=.291e-6, sldSolv=7.105e-6, 
     39background=0, 
     40axis_theta=0, axis_phi=0, 
     41axis_theta_pd=20, axis_theta_pd_n=10, axis_theta_pd_nsigma=3, 
    3442 
    35  
    36 model = SasModel(data, GpuEllipse, 
    37 scale=0.0011, 
    38 radius_a=100, radius_b=800.8, 
    39 sldEll=.291e-6, sldSolv=7.105e-6, 
    40 background=8.30161, 
    41 axis_theta=0, axis_phi=0, 
    42 axis_theta_pd=20, axis_theta_pd_n=40, axis_theta_pd_nsigma=3, 
    4343radius_a_pd=0.222296, radius_a_pd_n=1, radius_a_pd_nsigma=0, 
    4444radius_b_pd=.000128, radius_b_pd_n=1, radius_b_pd_nsigma=0, 
     
    4848 
    4949# SET THE FITTING PARAMETERS 
    50 model.radius_a.range(15, 1000) 
    51 model.radius_b.range(15, 1000) 
    52 #model.axis_theta_pd.range(0, 360) 
     50#model.radius_a.range(15, 1000) 
     51#model.radius_b.range(15, 1000) 
     52model.axis_theta_pd.range(0, 360) 
    5353#model.background.range(0,1000) 
    54 model.scale.range(0, 1) 
    55  
     54#model.scale.range(0, 1) 
     55""" 
    5656""" 
    5757 
     
    7171""" 
    7272 
     73model = SasModel(data, GpuCylinder, 
     74scale=0.08, radius=46, length=719, 
     75sldCyl=.291e-6, sldSolv=5.77e-6, background=0, 
     76cyl_theta=0, cyl_phi=0, 
     77cyl_theta_pd=23, cyl_theta_pd_n=10, cyl_theta_pd_nsigma=3, 
    7378 
    7479 
    75 """ 
    76 model = SasModel(data, GpuCylinder, 
    77 scale=0.0013, radius=105, length=1000, 
    78 sldCyl=.291e-6, sldSolv=5.77e-6, background=21, 
    79 cyl_theta=90, cyl_phi=0, 
    80 cyl_theta_pd=534, cyl_theta_pd_n=40, cyl_theta_pd_nsigma=3, 
     80radius_pd=0.1, radius_pd_n=20, radius_pd_nsigma=0, 
     81length_pd=0.1, length_pd_n=20, length_pd_nsigma=0, 
     82cyl_phi_pd=0.1, cyl_phi_pd_n=20, cyl_phi_pd_nsigma=0, 
     83dtype='float') 
    8184 
    8285# SET THE FITTING PARAMETERS 
    83 radius_pd=0.1, radius_pd_n=10, radius_pd_nsigma=0, 
    84 length_pd=0.1, length_pd_n=5, length_pd_nsigma=0, 
    85 cyl_phi_pd=0.1, cyl_phi_pd_n=4, cyl_phi_pd_nsigma=0, 
    86 dtype='float') 
    87 #model.radius.range(0, 1000) 
     86model.radius.range(0, 25) 
    8887#model.length.range(0, 1000) 
    8988#model.cyl_theta_pd.range(0,90) 
    90 model.scale.range(0, 1) 
    91 model.background.range(0, 1000) 
    92 """ 
     89#model.scale.range(0, 1) 
     90#model.background.range(0, 1000) 
     91 
    9392 
    9493""" 
  • sasmodel.py

    rd772f5d r099e053  
    22# -*- coding: utf-8 -*- 
    33 
    4 import sys 
    54import numpy as np 
    65import pyopencl as cl 
Note: See TracChangeset for help on using the changeset viewer.