Wiki
Clone wikiPyCA / doxy2swig_notes
To generate the doxygen-generated XML required as input to doxy2swig.py, in your Doxyfile set GENERATE_XML = YES
. After running doxygen, the directory 'xml' is generated. The doxy2swig.py script can then be run on documented functions -- in our case the Opers namespace contains much of the documentation we want:
python doxy2swig.py xml/namespacePyCA_1_1Opers.xml Opers.i
In [1]: import PyCA.Core as core In [2]: core.UpwindDiff? Type: function Base Class: <type 'function'> String Form:<function UpwindDiff at 0x2967668> Namespace: Interactive File: /local/jsam/python/site-packages/PyCA/Core/PyCA_math.py Definition: core.UpwindDiff(*args) Docstring: UpwindDiff(Image3D a_o, Image3D a_i, Image3D a_speed, DimT dim, StreamT s = 0) UpwindDiff(Image3D a_o, Image3D a_i, Image3D a_speed, DimT dim) void PyCA::Opers::UpwindDiff(Image3D &a_o, const Image3D &a_i, const Image3D &a_speed, DimT dim, StreamT s=NULL) returns deriv(h_i), where deriv is upwind derivative based on a_speed in dimension 'dim'
Updated