Hi everybody!
During the last weeks, we have made considerable progress on the Python interface of ESPResSo. Thanks to Rudolf Weeber, we now have most particle properties exposed to Python.
Furthermore, compiling the interface and running a program has been considerably simplified.
To compile the Python interface, just configure with
configure --with-python-interface
an compile with 'make'.
If you have Python and Cython installed with the development files, afterward you should have the compiled Python interface.
To run python with Espresso, simply run "./pypresso" in the top-level build dir, or set the PYTHONPATH to the top-level build dir and run python. Then you should be able to use "import espresso".
Also, you can run the test Python script like (even in parallel!)
./pypresso samples/python/lj_liquid.py
Be aware that the interface itself is not like we want to have it at the end. So far, we have just exposed the C-functions to Python. We will put this into a neat interface in the coming weeks, months or years.
Olaf
--
Dr. rer. nat. Olaf Lenz
Institut für Computerphysik, Allmandring 3, D-70569 Stuttgart
Phone: +49-711-685-63607