X Tutup
Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 1.16 KB

File metadata and controls

48 lines (28 loc) · 1.16 KB

python-necpp

PyPI module for nec2++

This module allows you to do antenna simulations in Python using the nec2++ antenna simulation package. This is a wrapper using SWIG of the C interface, so the syntax is quite simple. Have a look at the file test.py, for an example of how this library can be used. Other examples are in the 'examples' directory.

Author

Tim Molteno. tim@physics.otago.ac.nz

Instructions

To use this python module, you must have the necpp library installed on your system. This can be installed in the main part of the necpp code distribution.

NEC2++ source distribution

This is included as a git submodule

git clone https://github.com/tmolteno/python-necpp.git
git submodule init
git submodule update --remote

To update the submodule to the latest necpp

git submodule update --remote

Converting from MarkDown

sudo aptitude install pandoc swig

pandoc --to=rst  README.md > README.txt

Testing

Then you can do the usual

./build.sh

This will run SWIG a source distribution tarball

Uploading to PyPI.

http://peterdowns.com/posts/first-time-with-pypi.html

python setup.py sdist upload -r pypitest
X Tutup