ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 6b38781 was
0f5bc9f,
checked in by Mathieu Doucet <doucetm@…>, 16 years ago
|
Update of all C models to the new style of C++ models
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | The design of the SANS models is not easily scalable. Although a more efficient |
---|
2 | way (in terms of design and speed) as been implemented on the C/C++ side, the python |
---|
3 | design should be revisited. Areas of improvements include: |
---|
4 | |
---|
5 | 1- [C side] Incorporate the C functions that use libigor directly into the new C++ class. |
---|
6 | That would mean rewritting the script generator to eliminate all the .c files. |
---|
7 | |
---|
8 | 2- Re-design the sans.models.BaseComponent class to store the parameters as objects, |
---|
9 | like it's done on the C++ side. A better design may allow us to avoid the awful |
---|
10 | hard-coding of the translation between the python dictionary holding the |
---|
11 | parameters and the C++ Parameter class. |
---|
12 | |
---|
13 | Length = 400 |
---|
14 | I(Q=0.001) = 450.355 |
---|
15 | I(Q=0.001) = 472.332 |
---|
16 | I(Q=0.001) = 4723.32 |
---|
17 | I(Qx=0.001, Qy=0.001) = 4743.56 |
---|
18 | I(Q=0.00447, Phi=0.7854) = 4733 |
---|
19 | pi=3.14159 |
---|
20 | |
---|
21 | I(Qx=0.01, Qy=0.01) = 2299 |
---|
22 | I(Q=0.0141421) = 2326.75 |
---|
23 | ratio 0.988074 1.01207 |
---|
24 | |
---|
25 | Cyl (python): 450.35506578 |
---|
26 | Disp(pyhton): 472.332213339 |
---|
27 | |
---|
28 | -------------- |
---|
29 | Hello cylinder |
---|
30 | 450.35506578 |
---|
31 | 449.358988524 |
---|
32 | 446.344929175 |
---|
33 | |
---|
34 | {'npts': 1, 'type': 'gaussian', 'nsigmas': 2, 'width': 0.0} |
---|
35 | {'npts': 1, 'type': 'flat', 'width': 0.0} |
---|
36 | |
---|
37 | q= 0.001 |
---|
38 | New Cyl : 450.35506578 |
---|
39 | New Disp: 472.332213339 |
---|
40 | |
---|
41 | cyl(0.01, 0.01) =96.8691 |
---|
42 | cyl(0.0141421) =232.675 |
---|
43 | {'type': 'array'} |
---|
44 | cyl(0.01, 0.01) =229.9 |
---|
45 | Hello cylinder |
---|
46 | |
---|
47 | Old Cyl : 450.35506578 |
---|
48 | Old Disp: 472.332213339 |
---|
Note: See
TracBrowser
for help on using the repository browser.