Re: [Numpy-discussion] numpy migration

2007-04-25 Thread Duncan Smith
Timothy Hochberg wrote: > On 4/24/07, Duncan Smith <[EMAIL PROTECTED]> wrote: > >> >> >> >> Timothy Hochberg wrote: > > > > [SNIP] > > >> >> > >> > You should be getting a warning here. Did one disappear in the cut and >> > paste? Or are you using a nonstandard shell that eats warnings? Or

Re: [Numpy-discussion] numpy migration

2007-04-25 Thread Timothy Hochberg
On 4/24/07, Duncan Smith <[EMAIL PROTECTED]> wrote: Timothy Hochberg wrote: [SNIP] > > You should be getting a warning here. Did one disappear in the cut and > paste? Or are you using a nonstandard shell that eats warnings? Or an old > version of numpy? > Python 2.5.1 / numpy 1.0.1 / I

Re: [Numpy-discussion] numpy migration

2007-04-24 Thread Duncan Smith
Timothy Hochberg wrote: > On 4/23/07, Duncan Smith <[EMAIL PROTECTED]> wrote: > >> >> Hello, >> Since moving to numpy I've had a few problems with my existing >> code. It basically revolves around the numpy scalar types. e.g. >> >> >> >> >>>

Re: [Numpy-discussion] numpy migration

2007-04-24 Thread Timothy Hochberg
On 4/24/07, Timothy Hochberg <[EMAIL PROTECTED]> wrote [CHOP] Sorry, cut and paste error, that should have read: : > > >>> i = a[0,0] > >>> 1/i > > 0 You should be getting a warning here. Did one disappear in the cut and paste? Or are you using a nonstandard shell that eats warnings? Or an

Re: [Numpy-discussion] numpy migration

2007-04-24 Thread Timothy Hochberg
On 4/23/07, Duncan Smith <[EMAIL PROTECTED]> wrote: Hello, Since moving to numpy I've had a few problems with my existing code. It basically revolves around the numpy scalar types. e.g. >>> import Numeric as N >>> a = N.array([[0,1],[2,3]]

[Numpy-discussion] numpy migration

2007-04-24 Thread Duncan Smith
Hello, Since moving to numpy I've had a few problems with my existing code. It basically revolves around the numpy scalar types. e.g. >>> import Numeric as N >>> a = N.array([[0,1],[2,3]]) >>> a array([[0, 1], [2, 3]]) >>> i = a[0,0]