[5378e40] | 1 | #!/usr/bin/env python |
---|
| 2 | # -*- coding: utf-8 -*- |
---|
| 3 | |
---|
| 4 | from bumps.names import * |
---|
| 5 | from cylcode import GpuCylinder |
---|
| 6 | from lamellarcode import GpuLamellar |
---|
| 7 | from ellipsecode import GpuEllipse |
---|
| 8 | from coreshellcylcode import GpuCoreShellCylinder |
---|
| 9 | from sasmodel import SasModel, load_data, set_beam_stop |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | data = load_data('JUN03289.DAT') |
---|
| 13 | set_beam_stop(data, 0.004) |
---|
| 14 | |
---|
| 15 | """ |
---|
| 16 | model = SasModel(data, GpuCylinder, scale=1, radius=64.1, length=266.96, sldCyl=.291e-6, sldSolv=5.77e-6, background=0, |
---|
| 17 | cyl_theta=0, cyl_phi=0, radius_pd=0.1, radius_pd_n=10, radius_pd_nsigma=3,length_pd=0.1, |
---|
| 18 | length_pd_n=5, length_pd_nsigma=3, cyl_theta_pd=0.1, cyl_theta_pd_n=5, cyl_theta_pd_nsigma=3, |
---|
| 19 | cyl_phi_pd=0.1, cyl_phi_pd_n=10, cyl_phi_pd_nsigma=3,) |
---|
| 20 | |
---|
| 21 | model = SasModel(data, GpuEllipse, scale=.027, radius_a=60, radius_b=180, sldEll=.297e-6, sldSolv=5.773e-6, background=4.9, |
---|
| 22 | axis_theta=0, axis_phi=90, radius_a_pd=0.1, radius_a_pd_n=10, radius_a_pd_nsigma=3, radius_b_pd=0.1, radius_b_pd_n=10, |
---|
| 23 | radius_b_pd_nsigma=3, axis_theta_pd=0.1, axis_theta_pd_n=6, axis_theta_pd_nsigma=3, axis_phi_pd=0.1, |
---|
| 24 | axis_phi_pd_n=6, axis_phi_pd_nsigma=3) |
---|
| 25 | |
---|
| 26 | model = SasModel(data, GpuLamellar, scale=1, bi_thick=100, sld_bi=.291e-6, sld_sol=5.77e-6, background=0, |
---|
| 27 | bi_thick_pd=0.1, bi_thick_pd_n=35, bi_thick_pd_nsigma=3) |
---|
| 28 | |
---|
| 29 | """ |
---|
| 30 | model = SasModel(data, GpuCoreShellCylinder, scale=1, radius=64.1, thickness=1, length=266.96, core_sld=.251e-6, shell_sld=6.2e-6, |
---|
| 31 | solvent_sld=5.77e-6, background=0, axis_theta=0, axis_phi=0, radius_pd=0.1, radius_pd_n=10, radius_pd_nsigma=3, |
---|
| 32 | length_pd=0.1, length_pd_n=10, length_pd_nsigma=3, thickness_pd=0.1, thickness_pd_n=2, thickness_pd_nsigma=3, |
---|
| 33 | axis_theta_pd=0.1, axis_theta_pd_n=2, axis_theta_pd_nsigma=3, axis_phi_pd=0.1, axis_phi_pd_n=2, |
---|
| 34 | axis_phi_pd_nsigma=3) |
---|
| 35 | |
---|
| 36 | model.scale.range(0,10) |
---|
| 37 | |
---|
| 38 | problem = FitProblem(model) |
---|
| 39 | |
---|
| 40 | |
---|