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 17a6843 was
ae3ce4e,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
Moving sansmodels to trunk
|
-
Property mode set to
100644
|
File size:
765 bytes
|
Rev | Line | |
---|
[ae3ce4e] | 1 | /** c_models |
---|
| 2 | * |
---|
| 3 | * Module containing all SANS model extensions |
---|
| 4 | * |
---|
| 5 | * @author M.Doucet / UTK |
---|
| 6 | */ |
---|
| 7 | #include <Python.h> |
---|
| 8 | |
---|
| 9 | /** |
---|
| 10 | * Define empty module |
---|
| 11 | */ |
---|
| 12 | static PyMethodDef module_methods[] = { |
---|
| 13 | {NULL} |
---|
| 14 | }; |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #ifndef PyMODINIT_FUNC /* declarations for DLL import/export */ |
---|
| 18 | #define PyMODINIT_FUNC void |
---|
| 19 | #endif |
---|
| 20 | PyMODINIT_FUNC |
---|
| 21 | initc_models(void) |
---|
| 22 | { |
---|
| 23 | PyObject* m; |
---|
| 24 | |
---|
| 25 | m = Py_InitModule3("c_models", module_methods, |
---|
| 26 | "C extension module for SANS scattering models."); |
---|
| 27 | |
---|
| 28 | addCCylinderModel(m); |
---|
| 29 | addCCoreShellCylinderModel(m); |
---|
| 30 | addCCoreShellModel(m); |
---|
| 31 | addCEllipsoidModel(m); |
---|
| 32 | addCSphereModel(m); |
---|
| 33 | addCEllipticalCylinderModel(m); |
---|
| 34 | addDisperser(m); |
---|
| 35 | addCGaussian(m); |
---|
| 36 | addCLorentzian(m); |
---|
| 37 | |
---|
| 38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.