- Timestamp:
- Aug 4, 2014 5:20:07 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:
- 8cdb9f1
- Parents:
- 099e053
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fit2.py
r473183c ra42fec0 3 3 4 4 from bumps.names import * 5 from cylcode import GpuCylinder6 from Models.sasmodel import SasModel, load_data, set_beam_stop5 from Models.code_coreshellcyl import GpuCoreShellCylinder 6 from sasmodel import SasModel, load_data, set_beam_stop, set_top 7 7 8 8 9 radial_data = load_data('JUN03289.DAT') 10 set_beam_stop(radial_data, 0.004) 11 trans_data = load_data('JUN03305.DAT') 12 set_beam_stop(trans_data, 0.004) 9 radial_data = load_data('December/DEC07267.DAT') 10 set_beam_stop(radial_data, 0.00669, outer=0.025) 11 set_top(radial_data, -.0185) 12 13 tan_data = load_data('December/DEC07266.DAT') 14 set_beam_stop(tan_data, 0.00669, outer=0.025) 15 set_top(tan_data, -.0185) 13 16 14 17 … … 17 20 dtype='float32' 18 21 radial = SasModel(radial_data, 19 GpuCylinder, dtype=dtype, 20 scale=1, radius=64.1, length=266.96, sldCyl=.291e-6, sldSolv=5.77e-6, background=0, 21 cyl_theta=0, cyl_phi=0, radius_pd=0.1, radius_pd_n=10, radius_pd_nsigma=3,length_pd=0.1, 22 length_pd_n=5, length_pd_nsigma=3, cyl_theta_pd=0.1, cyl_theta_pd_n=5, cyl_theta_pd_nsigma=3, 23 cyl_phi_pd=0.1, cyl_phi_pd_n=10, cyl_phi_pd_nsigma=3) 24 trans = SasModel(trans_data, 25 GpuCylinder, dtype=dtype, 22 GpuCoreShellCylinder, 23 scale= 3.75e-7, radius=378, thickness=30, length=1806, 24 core_sld=7.105e-6, shell_sld=.291e-6, solvent_sld=7.105e-6, 25 background=0.2, axis_theta=0, axis_phi=90, 26 27 radius_pd=0.26, radius_pd_n=20, radius_pd_nsigma=3, 28 length_pd=0.26, length_pd_n=20, length_pd_nsigma=3, 29 thickness_pd=1, thickness_pd_n=1, thickness_pd_nsigma=0, 30 axis_theta_pd=1, axis_theta_pd_n=10, axis_theta_pd_nsigma=3, 31 axis_phi_pd=0.1, axis_phi_pd_n=1, axis_phi_pd_nsigma=0, 32 dtype='float') 33 tan = SasModel(tan_data, 34 GpuCoreShellCylinder, dtype=dtype, 26 35 **radial.parameters()) 27 36 28 radial.radius.range(0,100) 29 radial.length.range(0, 1000) 30 radial.cyl_theta.range(0,90) 31 radial.cyl_phi.range(0,90) 32 radial.scale.range(0,10) 33 trans.cyl_theta = radial.cyl_theta + 90. 37 radial.radius.range(15, 1000) 38 radial.length.range(0, 2500) 39 #radial.thickness.range(18, 38) 40 #radial.thickness_pd.range(0, 1) 41 #radial.axis_phi.range(0, 90) 42 #radial.radius_pd.range(0, 1) 43 #radial.length_pd.range(0, 1) 44 #radial.axis_theta_pd.range(0, 360) 45 #radial.background.range(0,5) 46 #radial.scale.range(0, 1) 47 radial.axis_phi = tan.axis_phi + 90 34 48 35 49 36 problem = FitProblem([radial,t rans])50 problem = FitProblem([radial,tan]) 37 51 38 52
Note: See TracChangeset
for help on using the changeset viewer.