[Numpy-discussion] ANN: NumPy 1.9.0 beta release

Sebastian Berg sebastian at sipsolutions.net
Tue Jun 10 04:55:32 EDT 2014


On Di, 2014-06-10 at 10:43 +0200, Sebastian Berg wrote:
> On Mo, 2014-06-09 at 18:21 -0600, Charles R Harris wrote:
> > 
> > 
> > 
> > On Mon, Jun 9, 2014 at 6:10 PM, Charles R Harris
> > <charlesr.harris at gmail.com> wrote:
> >         
> 
> <snip>
> >         
> >         
> > 
> > 
> > Other errors are of the type:
> > TypeError: NumPy boolean array indexing assignment requires a 0 or 1-dimensionalinput, input has 2 dimensions
> >  This one looks to arise is from stricter rules for boolean indexing.
> > 
> 
> Hmmmm, I may have removed an "if size of the boolean index matches the
> size of the output array ignore the shape (dimensions)" special cased, I
> guess we can put that in again.
> 
> The other error looks a bit different because of the nonzero logic, but
> probably is the same, i.e. also boolean indexing. The last one is the
> change that `arr[[1,2,3,4]] = [1,2]` does not work anymore. A workaround
> (maybe also for the rest possibly) is `arr.flat[[1,2,3,4]] = [1,2]`, but
> I guess workarounds are not an option with matplotlib, so have to think
> about it.

Correction: I think all (indexing) errors are the second case since the
boolean special case is not taken.

> 
> - Sebastian
> 
> > Chuck
> > 
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion at scipy.org
> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
> 
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140610/d2edba53/attachment.sig>


More information about the NumPy-Discussion mailing list