source: sasmodels/fit2.py @ 099e053

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 099e053 was 473183c, checked in by HMP1 <helen.park@…>, 10 years ago

organizing

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4from bumps.names import *
5from cylcode import GpuCylinder
6from Models.sasmodel import SasModel, load_data, set_beam_stop
7
8
9radial_data = load_data('JUN03289.DAT')
10set_beam_stop(radial_data, 0.004)
11trans_data = load_data('JUN03305.DAT')
12set_beam_stop(trans_data, 0.004)
13
14
15
16
17dtype='float32'
18radial = 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)
24trans = SasModel(trans_data,
25                  GpuCylinder, dtype=dtype,
26                  **radial.parameters())
27
28radial.radius.range(0,100)
29radial.length.range(0, 1000)
30radial.cyl_theta.range(0,90)
31radial.cyl_phi.range(0,90)
32radial.scale.range(0,10)
33trans.cyl_theta = radial.cyl_theta + 90.
34
35
36problem = FitProblem([radial,trans])
37
38
39
Note: See TracBrowser for help on using the repository browser.