To build GiDPost as Python module you'll need:
python3
SWIG: (Simplified Wrapper and Interface Generator) a tool used to connect C or C++ code with scripting languages like python. https://www.swig.org/
How to build python module (Linux):
Once you have configured and built the GiDPost library as described Compiling the library and examples , then:
Code Block | ||
---|---|---|
| ||
$ cd .../gidpost/gidpost-swig/
$ make
$ make test |
Examples of use:
gidpost_test.py
- example of writing ascii / hdf5 gid post file with the basic API.gidpost_test_array.py
- example of writing ascii / hdf5 gid post file using the Write*Block API.
Not all gidpost library functions are exposed