[Numpy-discussion] ANN: NumPy 1.9.0 beta release

Sebastian Berg sebastian at sipsolutions.net
Tue Jun 10 04:43:44 EDT 2014


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.

- Sebastian

> Chuck
> 
> _______________________________________________
> 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/055d6b00/attachment.sig>


More information about the NumPy-Discussion mailing list