Re: [Numpy-discussion] Indexing empty array with empty boolean array causes IndexError: invalid index exception

2009-08-17 Thread Maria Liukis
On Aug 12, 2009, at 9:25 AM, Robert Kern wrote: On Mon, Aug 10, 2009 at 14:19, Maria Liukisliu...@usc.edu wrote: Hello everybody, I'm using following versions of Scipy and Numpy packages: scipy.__version__ '0.7.1' np.__version__ '1.3.0' My code uses boolean array to filter 2-dimensional

Re: [Numpy-discussion] Indexing empty array with empty boolean array causes IndexError: invalid index exception

2009-08-12 Thread Robert Kern
On Mon, Aug 10, 2009 at 14:19, Maria Liukisliu...@usc.edu wrote: Hello everybody, I'm using following versions of Scipy and Numpy packages: scipy.__version__ '0.7.1' np.__version__ '1.3.0' My code uses boolean array to filter 2-dimensional array which sometimes happens to be an empty

[Numpy-discussion] Indexing empty array with empty boolean array causes IndexError: invalid index exception

2009-08-10 Thread Maria Liukis
Hello everybody, I'm using following versions of Scipy and Numpy packages: scipy.__version__ '0.7.1' np.__version__ '1.3.0' My code uses boolean array to filter 2-dimensional array which sometimes happens to be an empty array. It seems like I have to take special care when dimension I'm

Re: [Numpy-discussion] Indexing empty array with empty boolean array causes IndexError: invalid index exception

2009-08-10 Thread Maria Liukis
A correction for the typo below. Thanks, Masha liu...@usc.edu On Aug 10, 2009, at 12:19 PM, Maria Liukis wrote: Hello everybody, I'm using following versions of Scipy and Numpy packages: scipy.__version__ '0.7.1' np.__version__ '1.3.0' My code uses boolean array to