Changeset 099e053 in sasmodels
- Timestamp:
- Jul 24, 2014 3:48:06 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:
- a42fec0
- Parents:
- ca6c007
- Files:
-
- 13 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fit.py
rca6c007 r099e053 32 32 uplim=90) #bottom limit, upper limit of angle integral 33 33 """ 34 """ 35 model = SasModel(data, GpuEllipse, 36 scale=0.08, 37 radius_a=15, radius_b=200, 38 sldEll=.291e-6, sldSolv=7.105e-6, 39 background=0, 40 axis_theta=0, axis_phi=0, 41 axis_theta_pd=20, axis_theta_pd_n=10, axis_theta_pd_nsigma=3, 34 42 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,43 43 radius_a_pd=0.222296, radius_a_pd_n=1, radius_a_pd_nsigma=0, 44 44 radius_b_pd=.000128, radius_b_pd_n=1, radius_b_pd_nsigma=0, … … 48 48 49 49 # 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) 52 model.axis_theta_pd.range(0, 360) 53 53 #model.background.range(0,1000) 54 model.scale.range(0, 1)55 54 #model.scale.range(0, 1) 55 """ 56 56 """ 57 57 … … 71 71 """ 72 72 73 model = SasModel(data, GpuCylinder, 74 scale=0.08, radius=46, length=719, 75 sldCyl=.291e-6, sldSolv=5.77e-6, background=0, 76 cyl_theta=0, cyl_phi=0, 77 cyl_theta_pd=23, cyl_theta_pd_n=10, cyl_theta_pd_nsigma=3, 73 78 74 79 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, 80 radius_pd=0.1, radius_pd_n=20, radius_pd_nsigma=0, 81 length_pd=0.1, length_pd_n=20, length_pd_nsigma=0, 82 cyl_phi_pd=0.1, cyl_phi_pd_n=20, cyl_phi_pd_nsigma=0, 83 dtype='float') 81 84 82 85 # 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) 86 model.radius.range(0, 25) 88 87 #model.length.range(0, 1000) 89 88 #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 93 92 94 93 """ -
sasmodel.py
rd772f5d r099e053 2 2 # -*- coding: utf-8 -*- 3 3 4 import sys5 4 import numpy as np 6 5 import pyopencl as cl
Note: See TracChangeset
for help on using the changeset viewer.