source: sasview/sansmodels/src/sans/models/c_models/notes.txt @ 76b5220

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 76b5220 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
RevLine 
[fca6936]1The design of the SANS models is not easily scalable. Although a more efficient
2way (in terms of design and speed) as been implemented on the C/C++ side, the python
3design should be revisited. Areas of improvements include:
4
51- [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 
82- 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         
[0f5bc9f]13 Length = 400
14I(Q=0.001) = 450.355
15I(Q=0.001) = 472.332
16I(Q=0.001) = 4723.32
17I(Qx=0.001, Qy=0.001) = 4743.56
18I(Q=0.00447,  Phi=0.7854) = 4733
19pi=3.14159
20
21I(Qx=0.01, Qy=0.01) = 2299
22I(Q=0.0141421)         = 2326.75
23ratio 0.988074 1.01207
24
25Cyl (python):  450.35506578
26Disp(pyhton):  472.332213339
27
28--------------
29Hello cylinder
30450.35506578
31449.358988524
32446.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
38New Cyl :  450.35506578
39New Disp:  472.332213339
40
41cyl(0.01, 0.01) =96.8691
42cyl(0.0141421) =232.675
43{'type': 'array'}
44cyl(0.01, 0.01) =229.9
45Hello cylinder
46
47Old Cyl :  450.35506578
48Old Disp:  472.332213339
Note: See TracBrowser for help on using the repository browser.