Simulations with Python
It is possible to run GnuCAP simulations from Python.
For this, you need to install the Gnucap Python package from Felix Saalfelder. This package can be obtained from: The Gitlab project
The main project package is located at: http://gnucap.org/dokuwiki/doku.php/gnucap:user:gnucap_python
Build the Python extension
First you need to clone the repo:
To build the Gnucap Python extension you might to build a recent version of gnucap. You can see a list of recent versions with:
And repeat the build cycle from Chapter 1.
The Python extension is based on SWIG and the autotools build system
To build and use the Gnucap module, you should install a at least the numpy package with development headers. In Linux you can simply put a link to these headers in the /usr/include folder as follows:
Also you might want to install matplotlib package to plot simulation results.
Simple pulse simulation
Then run the Python based simulation script:
Last updated