[Numpy-discussion] Memory errors
Vikalpa Jetly
vjetly at i3.com
Thu Oct 5 18:27:52 CDT 2006
I am reading a very large array (~9000,11000) of 1 byte image values. I need
to change values in the array that meet a certain condition so I am running
something like:
b = numpy.where(a>200,0,1)
to create a new array with the changed values. However, I get a
"MemoryError" everytime I try this. I have over 3gb of RAM on my machine
(most of which is available). The process runs fine on smaller datasets. Is
there a maximum array size that numpy handles? Any alternatives/workarounds?
Thanks.
Vikalpa
-----Original Message-----
From: numpy-discussion-bounces at lists.sourceforge.net
[mailto:numpy-discussion-bounces at lists.sourceforge.net] On Behalf Of A. M.
Archibald
Sent: Thursday, October 05, 2006 5:02 PM
To: Discussion of Numerical Python
Subject: Re: [Numpy-discussion] Hello and my first patch
On 05/10/06, Travis Oliphant <oliphant at ee.byu.edu> wrote:
> I think a hybrid for weave / f2py / ctypes that allows "inlining in
> multiple languages" as well as automatic extension module generation for
> "already-written" code is in order.
It might make sense to also include SWIG (since that seems to be a
popular choice for wrapping "already-written" C and C++ code).
A. M. Archibald
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
More information about the Numpy-discussion
mailing list