Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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/

To install the required packages in Linux just do the following as root:
Ubuntu (Debian and the like):

Code Block
apt install python3 swig

Scientific Linux (Redhat and the like):

Code Block
yum install python3.x86_64 swig.x86_64

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
languagebash
$ 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