source: sasmodels/fit2.py @ 79fcc40

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 79fcc40 was 8faffcd, checked in by HMP1 <helen.park@…>, 10 years ago

Update for Aaron

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[8a20be5]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
12radial_data = load_data('JUN03289.DAT')
13set_beam_stop(radial_data, 0.004)
14trans_data = load_data('JUN03305.DAT')
15set_beam_stop(trans_data, 0.004)
16
17
18
19
20dtype='float32'
21radial = SasModel(radial_data,
22                  GpuCylinder, dtype=dtype,
23                  scale=1, radius=64.1, length=266.96, sldCyl=.291e-6, sldSolv=5.77e-6, background=0,
24                  cyl_theta=0, cyl_phi=0, radius_pd=0.1, radius_pd_n=10, radius_pd_nsigma=3,length_pd=0.1,
25                  length_pd_n=5, length_pd_nsigma=3, cyl_theta_pd=0.1, cyl_theta_pd_n=5, cyl_theta_pd_nsigma=3,
26                  cyl_phi_pd=0.1, cyl_phi_pd_n=10, cyl_phi_pd_nsigma=3)
27trans = SasModel(trans_data,
28                  GpuCylinder, dtype=dtype,
29                  **radial.parameters())
30
31radial.radius.range(0,100)
32radial.length.range(0, 1000)
33radial.cyl_theta.range(0,90)
34radial.cyl_phi.range(0,90)
35radial.scale.range(0,10)
[8faffcd]36trans.cyl_theta = radial.cyl_theta + 90.
[8a20be5]37
38
[8faffcd]39problem = FitProblem([radial,trans])
[8a20be5]40
41
42
Note: See TracBrowser for help on using the repository browser.