Re: [Numpy-discussion] np.isfinite on structured arrays

2009-07-15 Thread Pauli Virtanen
Tue, 14 Jul 2009 14:45:11 -0400, Pierre GM kirjoitti: Consider the following code: a = np.array(zip(np.arange(3)),dtype=[('a',float)]) np.isfinite(a) NotImplemented That is, when the input is a structured array, np.isfinite returns an object of type NotImplementedType. I would have

Re: [Numpy-discussion] np.isfinite on structured arrays

2009-07-15 Thread Pierre GM
On Jul 15, 2009, at 4:23 AM, Pauli Virtanen wrote: Tue, 14 Jul 2009 14:45:11 -0400, Pierre GM kirjoitti: Consider the following code: a = np.array(zip(np.arange(3)),dtype=[('a',float)]) np.isfinite(a) NotImplemented Seems like a bug. As I understand, NotImplemented is intended to be

[Numpy-discussion] np.isfinite on structured arrays

2009-07-14 Thread Pierre GM
All, Consider the following code: a = np.array(zip(np.arange(3)),dtype=[('a',float)]) np.isfinite(a) NotImplemented That is, when the input is a structured array, np.isfinite returns an object of type NotImplementedType. I would have expected it to raise a NotImplementedError exception.