Changeset a42fec0 in sasmodels for multi-fit.py
- Timestamp:
- Aug 4, 2014 3: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
-
multi-fit.py
rd772f5d ra42fec0 3 3 4 4 from bumps.names import * 5 from code_lamellar import GpuLamellar 6 from code_ellipse import GpuEllipse 5 from Models.code_lamellar import GpuLamellar 6 from Models.code_ellipse import GpuEllipse 7 from Models.code_cylinder import GpuCylinder 7 8 from multisasmodels import SasModel, load_data, set_beam_stop, set_half 8 9 import numpy as np 9 10 10 data = load_data('D EC07282.DAT')11 data = load_data('December/DEC07238.DAT') 11 12 set_beam_stop(data, 0.0052)#, outer=0.025) 12 13 #set_half(data, 'left') 13 14 14 truth = SasModel(data, GpuEllipse, 15 scale=.0011, radius_a=45.265, radius_b=600.8, sldEll=.291e-6, sldSolv=7.105e-6, 16 background=8.30161, axis_theta=0, axis_phi=0, 17 radius_a_pd=0.222296, radius_a_pd_n=1, radius_a_pd_nsigma=0, 18 radius_b_pd=.000128, radius_b_pd_n=1, radius_b_pd_nsigma=0, 19 axis_theta_pd=20, axis_theta_pd_n=40, axis_theta_pd_nsigma=3, 20 axis_phi_pd=2.63698e-05, axis_phi_pd_n=20, axis_phi_pd_nsigma=0, 21 dtype='float') 15 truth = SasModel(data, GpuCylinder, 16 scale=0.08, radius=46, length=719, 17 sldCyl=.291e-6, sldSolv=5.77e-6, background=0, 18 cyl_theta=90, cyl_phi=0, 19 cyl_theta_pd=23, cyl_theta_pd_n=40, cyl_theta_pd_nsigma=3, 20 radius_pd=0.1, radius_pd_n=10, radius_pd_nsigma=3, 21 length_pd=0.1, length_pd_n=10, length_pd_nsigma=3, 22 cyl_phi_pd=0.1, cyl_phi_pd_n=10, cyl_phi_pd_nsigma=3, 23 dtype='float') 24 22 25 23 26 #model.radius_a.range(15, 1000) … … 30 33 31 34 32 lies = SasModel(data, GpuLamellar, scale=0, bi_thick=5, sld_bi=.291e-6, sld_sol=5.77e-6, background=85.23, 33 bi_thick_pd= 0.0013, bi_thick_pd_n=5, bi_thick_pd_nsigma=3, dtype='float') 35 lies = SasModel(data, GpuCylinder, 36 scale=0.08, radius=46, length=719, 37 sldCyl=.291e-6, sldSolv=5.77e-6, background=0, 38 cyl_theta=90, cyl_phi=0, 39 cyl_theta_pd=23, cyl_theta_pd_n=40, cyl_theta_pd_nsigma=3, 40 radius_pd=0.1, radius_pd_n=10, radius_pd_nsigma=3, 41 length_pd=0.1, length_pd_n=10, length_pd_nsigma=3, 42 cyl_phi_pd=0.1, cyl_phi_pd_n=10, cyl_phi_pd_nsigma=3, 43 dtype='float') 44 34 45 35 46 … … 43 54 44 55 45 a = np.add(np.multiply(arrayone, . 5), np.multiply(arraytwo, 0))56 a = np.add(np.multiply(arrayone, .08), np.multiply(arraytwo, .08)) 46 57 truth.set_result(a) 47 58
Note: See TracChangeset
for help on using the changeset viewer.