[Biopython-dev] KDTree to numpy
Marcin Cieślik
marcin.cieslik at gmail.com
Sun Feb 17 07:58:58 UTC 2008
Hi,
I was able to make KDtrees work with numpy. There where no real problems
apart from my complete lack of c++/swig skills. It seems to me that
everything is working fine.
the includes in KDTree.i look like this:
%{
#include "KDTree.h"
#include
</usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h>
%}
is this correct? Changes in .py files where really small.
i compiled/tested it on linux
make clean
rm *.o
rm *.so
make
gcc -c KDTree.cpp KDTree.swig.cpp -I/usr/include/python2.5
g++ -shared KDTree.swig.o KDTree.o -o _CKDTree.so
you can get it here:
http://149.156.87.35/~marcin_cieslik/KDTree2.tar.gz
Marcin
More information about the Biopython-dev
mailing list