Re: [Numpy-discussion] np.insert with axis=-1

2013-07-01 Thread Sebastian Berg
On Mon, 2013-07-01 at 17:54 +0200, Sebastian Berg wrote: > On Mon, 2013-07-01 at 14:11 +0200, Félix Hartmann wrote: > > Hi all, > > > > I recently upgraded from Numpy 1.6.2 to 1.7.1 on my Debian testing, and > > then got a bug in a program that was previously working. It turned out > > that the pr

Re: [Numpy-discussion] np.insert with axis=-1

2013-07-01 Thread Sebastian Berg
On Mon, 2013-07-01 at 14:11 +0200, Félix Hartmann wrote: > Hi all, > > I recently upgraded from Numpy 1.6.2 to 1.7.1 on my Debian testing, and > then got a bug in a program that was previously working. It turned out > that the problem comes from the np.insert function when the argument > `axis=-1`

[Numpy-discussion] np.insert with axis=-1

2013-07-01 Thread Félix Hartmann
Hi all, I recently upgraded from Numpy 1.6.2 to 1.7.1 on my Debian testing, and then got a bug in a program that was previously working. It turned out that the problem comes from the np.insert function when the argument `axis=-1` is given. Here is a minimal example: >>> u = np.zeros((2,3,4)) >>>