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 3f31159 was
eba9885,
checked in by Gervaise Alina <gervyh@…>, 15 years ago
|
code for evalDistribution
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /** c_models |
---|
2 | * |
---|
3 | * Module containing all SANS model extensions |
---|
4 | * |
---|
5 | * @author M.Doucet / UTK |
---|
6 | */ |
---|
7 | #include <Python.h> |
---|
8 | #define PY_ARRAY_UNIQUE_SYMBOL PyArray_API_sans |
---|
9 | #include "arrayobject.h" |
---|
10 | /** |
---|
11 | * Define empty module |
---|
12 | */ |
---|
13 | static PyMethodDef module_methods[] = { |
---|
14 | {NULL} |
---|
15 | }; |
---|
16 | |
---|
17 | |
---|
18 | #ifndef PyMODINIT_FUNC /* declarations for DLL import/export */ |
---|
19 | #define PyMODINIT_FUNC void |
---|
20 | #endif |
---|
21 | PyMODINIT_FUNC |
---|
22 | initc_models(void) |
---|
23 | { |
---|
24 | PyObject* m; |
---|
25 | |
---|
26 | m = Py_InitModule3("c_models", module_methods, |
---|
27 | "C extension module for SANS scattering models."); |
---|
28 | |
---|
29 | import_array(); |
---|
30 | addCCylinderModel(m); |
---|
31 | addCParallelepipedModel(m); |
---|
32 | addCCoreShellCylinderModel(m); |
---|
33 | addCCoreShellModel(m); |
---|
34 | addCEllipsoidModel(m); |
---|
35 | addCSphereModel(m); |
---|
36 | addCHardsphereStructure(m); |
---|
37 | addCStickyHSStructure(m); |
---|
38 | addCHayterMSAStructure(m); |
---|
39 | addCSquareWellStructure(m); |
---|
40 | addCDiamEllipFunc(m); |
---|
41 | addCDiamCylFunc(m); |
---|
42 | addCEllipticalCylinderModel(m); |
---|
43 | addCTriaxialEllipsoidModel(m); |
---|
44 | addCFlexibleCylinderModel(m); |
---|
45 | addCStackedDisksModel(m); |
---|
46 | addCLamellarPSModel(m); |
---|
47 | addCLamellarPSHGModel(m); |
---|
48 | addCProlateModel(m); |
---|
49 | addCOblateModel(m); |
---|
50 | addCLamellarModel(m); |
---|
51 | addCLamellarFFHGModel(m); |
---|
52 | addDisperser(m); |
---|
53 | addCGaussian(m); |
---|
54 | addCSchulz(m); |
---|
55 | addCLogNormal(m); |
---|
56 | addCLorentzian(m); |
---|
57 | addCHollowCylinderModel(m); |
---|
58 | addCMultiShellModel(m); |
---|
59 | addCVesicleModel(m); |
---|
60 | addCBinaryHSModel(m); |
---|
61 | addCBinaryHSPSF11Model(m); |
---|
62 | |
---|
63 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.