Hi,<br><br>I think it is good start. But as you say the python looks a lot like c.<br><br>I would be interested in collaborating in extending it to make it pytonic by e.g. creating classes , writing iterators, and converting all c data structures into best fitting NumPy/Python data structure, writing __str__ methods, raising exceptions instead of returning errorcode,...<br>


<br>I think this can be done pretty quickly because the number of function which make sense to export is not that large.<br><br>Is someone else interested in that?<br>

<br>Roland<br><br><div class="gmail_quote">On Sat, Mar 28, 2009 at 8:52 AM, Höfling Martin <span dir="ltr">&lt;<a href="mailto:martin.hoefling@gmx.de" target="_blank">martin.hoefling@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<br>
Am 28.03.2009 um 09:26 schrieb Roland Schulz:<br>
<br>
Hey Roland and others,<br>
<br>
Here&#39;s a bunch of code I wrote to wrap libgmx with ctypes and make use of parts of gromacs functionality. My application for this was the processing of a trajectories using gromac&#39;s pbc removal and fitting routines as well as reading in index groups etc. It&#39;s very incomplete atm and also focused on wrapping libgmx with all gromacs types and definitions...<br>




<br>
... so python here feels a bit like lightweight c-code glueing together gromacs library functions :-)<br>
<br>
The attached code lacks a bit of documentation, but I included a test.py as an example using it.<br>
<br>
Best<br><font color="#888888">
        Martin<br>
<br>
<br>
</font><br><br>
<br>_______________________________________________<br>
gmx-developers mailing list<br>
<a href="mailto:gmx-developers@gromacs.org" target="_blank">gmx-developers@gromacs.org</a><br>
<a href="http://www.gromacs.org/mailman/listinfo/gmx-developers" target="_blank">http://www.gromacs.org/mailman/listinfo/gmx-developers</a><br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.<br></blockquote></div><br><br clear="all"><br>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a><br>



865-241-1537, ORNL PO BOX 2008 MS6309<br>