[Insight-developers] Python: Numeric vs NumArray vs Numpy (itkPyBuffer)

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Tue Sep 29 04:11:16 EDT 2009


Le 29 sept. 09 à 09:27, Mathieu Malaterre a écrit :

> Hi there,
>
>  I am reading through the code of itkPyBuffer and found:
>
> $ cat Wrapping/WrapITK/ExternalProjects/PyBuffer/itkPyBuffer.txx
> ...
> // Deal with slight incompatibilites between NumPy (the future,  
> hopefully),
> // Numeric (old version) and Numarray's Numeric compatibility module  
> (also old).
> #ifndef NDARRAY_VERSION
> // NDARRAY_VERSION is only defined by NumPy's arrayobject.h
> // In non NumPy arrayobject.h files, PyArray_SBYTE is used instead  
> of BYTE.
> #define PyArray_BYTE PyArray_SBYTE
> #endif
> ...
>
>  There will be an issue soon in debian as python-numarray is
> deprecated so we need to transition -hopefully- to numpy.
>
> A couple of questions:
> - Does anyone use Numpy ? Is this working ?

I do - it works.

> - What is the difference in between (the patched)
> Wrapping/WrapITK/ExternalProjects/PyBuffer/itkPyBuffer.txx and
> Wrapping/CSwig/CommonA/itkPyBuffer.txx ?


I never succeeded to use the later, while the former works great :-)
The new one is a rework of what was began with the old one, but never  
polished enough to be production ready.

Gaëtan


-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20090929/8d33ba52/attachment.pgp>


More information about the Insight-developers mailing list