[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Numeric/NumPy/Numarray Clarification



I've been messing around with PyGame and the OpenGL bindings for a while
now, and I've recently begun to start seeing the light of using the array
classes from numpy for various math operation.

The thing is... Does anyone have any sort of clear idea about which package
I should have installed out of Numeric, NumPy and Numarray? They all seem to
be by the same bunch of people, but the fact that they all seem to do the
same thing, but are named differently and have no clues about them to let
you know which one does/has what bundled in with it.

For instance, in the pygame repository there's a little plasma demo that
uses RandomArray which is suppsedly in the Numeric package. I have the
Numeric package installed, but after searching through the
/usr/lib/python2.4/site-packages directory, I did not find RandomArray in
the Numeric package, but I *did* find a RandomArray2 module inside the
Numarray package. So in the code, I had to replace "from RandomArray import
*" to "from numarray.random_array.RandomArray2 import *".

Ultimately, that did the trick of solving the "missing" RandomArray import
problem, but seriously, I just want a nice, clean site-packages directory,
and just need some pointers on which bloody package I *should* have
installed, or at the very least, someone explain to me the differences
between the three apparently different packages.

Sorry for the long-windedness, but it's just kinda frustrating not knowing
if I have the "right" package installed.

Thanks :)




~Chris




CONFIDENTIAL NOTICE: This email including any attachments, contains 
confidential information belonging to the sender. It may also be 
privileged or otherwise protected by work product immunity or other 
legal rules. This information is intended only for the use of the 
individual or entity named above.  If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, 
distribution or the taking of any action in reliance on the contents 
of this emailed information is strictly prohibited.  If you have 
received this email in error, please immediately notify us by 
reply email of the error and then delete this email immediately.