source: sasmodels/fit.py @ 5378e40

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 5378e40 was 5378e40, checked in by Helen Park <HMP1@…>, 10 years ago

Initial commit

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[5378e40]1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4from bumps.names import *
5from cylcode import GpuCylinder
6from lamellarcode import GpuLamellar
7from ellipsecode import GpuEllipse
8from coreshellcylcode import GpuCoreShellCylinder
9from sasmodel import SasModel, load_data, set_beam_stop
10
11
12data = load_data('JUN03289.DAT')
13set_beam_stop(data, 0.004)
14
15"""
16model = 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
21model = 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
26model = 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"""
30model = 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
36model.scale.range(0,10)
37
38problem = FitProblem(model)
39
40
Note: See TracBrowser for help on using the repository browser.