- Timestamp:
- Jul 11, 2014 12:47:47 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:
- be5d7df
- Parents:
- 8faffcd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fit.py
r8faffcd r2de9a5e 3 3 4 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 5 from code_cylinder import GpuCylinder 6 from code_lamellar import GpuLamellar 7 from code_ellipse import GpuEllipse 8 from code_coreshellcyl import GpuCoreShellCylinder 9 from code_capcyl import GpuCapCylinder 10 from code_triaxialellipse import GpuTriEllipse 9 11 from sasmodel import SasModel, load_data, set_beam_stop 10 12 … … 25 27 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, 26 28 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, 27 axis_phi_pd_n=6, axis_phi_pd_nsigma=3, dtype='float ')29 axis_phi_pd_n=6, axis_phi_pd_nsigma=3, dtype='float32') 28 30 29 31 model = SasModel(data, GpuLamellar, scale=1, bi_thick=100, sld_bi=.291e-6, sld_sol=5.77e-6, background=0, 30 bi_thick_pd=0.1, bi_thick_pd_n=35, bi_thick_pd_nsigma=3, dtype='float ')32 bi_thick_pd=0.1, bi_thick_pd_n=35, bi_thick_pd_nsigma=3, dtype='float32') 31 33 32 """ 34 33 35 model = SasModel(data, GpuCoreShellCylinder, scale=1, radius=64.1, thickness=1, length=266.96, core_sld=1e-6, shell_sld=4e-6, 34 36 solvent_sld=1e-6, background=0, axis_theta=0, axis_phi=0, radius_pd=0.1, radius_pd_n=10, radius_pd_nsigma=3, 35 37 length_pd=0.1, length_pd_n=10, length_pd_nsigma=3, thickness_pd=0.1, thickness_pd_n=2, thickness_pd_nsigma=3, 36 38 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, 37 axis_phi_pd_nsigma=3, dtype='float ')39 axis_phi_pd_nsigma=3, dtype='float32') 38 40 39 model = SasModel(data, GpuCapCylinder, scale, rad_cyl, rad_cap, length, sld_capcyl, sld_solv, background, theta, phi, 40 rad_cyl_pd, rad_cyl_pd_n, rad_cyl_nsigma, rad_cap_pd, rad_cap_pd_n, rad_cap_pd_nsigma, length_) 41 model = SasModel(data, GpuCapCylinder, scale=1, rad_cyl=20, rad_cap=40, length=400, sld_capcyl=1e-6, sld_solv=6.3e-6, 42 background=0, theta=0, phi=0, rad_cyl_pd=.1, rad_cyl_pd_n=10, rad_cyl_nsigma=3, rad_cap_pd=.1, rad_cap_pd_n=1, 43 rad_cap_pd_nsigma=3, length_pd=.1, length_pd_n=10, length_pd_nsigma=3, theta_pd=.1, theta_pd_n=4, 44 theta_pd_nsigma=3, phi_pd=.1, phi_pd_n=4, phi_pd_nsigma=3, dtype='float32') 45 """ 46 model = SasModel(data, GpuTriEllipse, scale=1, axisA=35, axisB=100, axisC=400, sldEll=1e-6, sldSolv=6.3e-6, 47 background=0, theta=57, phi=57, psi=0, theta_pd=.1, theta_pd_n=4, 48 theta_pd_nsigma=3, phi_pd=.1, phi_pd_n=4, phi_pd_nsigma=3, psi_pd=.1, psi_pd_n=4, psi_pd_nsigma=3, 49 axisA_pd=.1, axisA_pd_n=4, axisA_pd_nsigma=3, axisB_pd=.1, axisB_pd_n=4, axisB_pd_nsigma=3, 50 axisC_pd=.1, axisC_pd_n=4, axisC_pd_nsigma=3, dtype='float') 41 51 42 model.scale.range(0,1 0)52 model.scale.range(0,1) 43 53 44 54 problem = FitProblem(model)
Note: See TracChangeset
for help on using the changeset viewer.