| 1 |
README for tools/Python directory |
| 2 |
--------------------------------- |
| 3 |
|
| 4 |
Author: Todd Dolinsky ([email protected]) |
| 5 |
Date: 9/12/2005 |
| 6 |
|
| 7 |
This directory contains Python wrappers for APBS. |
| 8 |
|
| 9 |
Files: |
| 10 |
apbslib.i - SWIG interface file |
| 11 |
apbslib.c - SWIG generated C file |
| 12 |
apbslib.py - SWIG generated Python file containing wrappers |
| 13 |
for the APBS functions defined in routines.c |
| 14 |
_apbslib.so - Generated shared object file |
| 15 |
NOTE: This file used to be called apbslibc.so in APBS |
| 16 |
0.3.2 and below. |
| 17 |
main.py - Driver file for APBS code; mimics main.c |
| 18 |
noinput.py - Example driver file for APBS code that does not need |
| 19 |
PQR/.in input files - all input is handled at the Python |
| 20 |
level |
| 21 |
apbs.in - Example APBS input file for Born Ion example |
| 22 |
|
| 23 |
To run the Python-wrapper version of APBS, make sure you have a working |
| 24 |
version of Python installed. By default, the wrappers are compiled during the |
| 25 |
initial configure process if Python is detected on the system.* Type |
| 26 |
|
| 27 |
python main.py <input file> or |
| 28 |
python noinput.py |
| 29 |
|
| 30 |
to run APBS on an input file in Python. The input file must be the same |
| 31 |
format as the standard APBS input files - see documentation for formatting. |
| 32 |
|
| 33 |
* The main configure script needs additional libraries to compile correctly, |
| 34 |
and thus may not work on all systems. Current status: |
| 35 |
|
| 36 |
Linux - Working |
| 37 |
Mac G5 - Working |
| 38 |
Irix/SGI - Untested |
| 39 |
Sun/Solaris - Untested |
| 40 |
Mingw - Working, but users will need to copy the resulting |
| 41 |
_apbslib.so.exe to _apbslib.dll: |
| 42 |
|
| 43 |
cd /path/to/apbs/tools/python |
| 44 |
cp _apbslib.so.exe _apbslib.dll |
| 45 |
cp vgrid/_vgrid.so.exe vgrid/_vgrid.dll |
| 46 |
|
| 47 |
Cygwin - No support (by default, the directory is not compiled) |
| 48 |
|
| 49 |
|
| 50 |
|