Re: [Numpy-discussion] should get rid of the annoying numpy STDERR output

2011-03-30 Thread Robert Kern
On Wed, Mar 30, 2011 at 16:03, Ralf Gommers wrote: > On Thu, Mar 24, 2011 at 5:25 PM, Ralf Gommers > wrote: >> On Thu, Mar 24, 2011 at 5:11 PM, Robert Kern wrote: >>> We really should change the default to 'warn' for numpy 2.0. Maybe >>> even for numpy 1.6. We've talked about it before, and I t

Re: [Numpy-discussion] should get rid of the annoying numpy STDERR output

2011-03-30 Thread Ralf Gommers
On Thu, Mar 24, 2011 at 5:25 PM, Ralf Gommers wrote: > On Thu, Mar 24, 2011 at 5:11 PM, Robert Kern wrote: >> 2011/3/24 Dmitrey : >> from numpy import inf, array >> inf*0 >>> nan >>> >>> (ok) >>> >> array(inf) * 0.0 >>> StdErr: Warning: invalid value encountered in multiply >>> nan >>

Re: [Numpy-discussion] should get rid of the annoying numpy STDERR output

2011-03-24 Thread Ralf Gommers
On Thu, Mar 24, 2011 at 5:11 PM, Robert Kern wrote: > 2011/3/24 Dmitrey : > from numpy import inf, array > inf*0 >> nan >> >> (ok) >> > array(inf) * 0.0 >> StdErr: Warning: invalid value encountered in multiply >> nan >> >> My cycled calculations yields this thousands times slowing com

Re: [Numpy-discussion] should get rid of the annoying numpy STDERR output

2011-03-24 Thread Robert Kern
2011/3/24 Dmitrey : from numpy import inf, array inf*0 > nan > > (ok) > array(inf) * 0.0 > StdErr: Warning: invalid value encountered in multiply > nan > > My cycled calculations yields this thousands times slowing computations and > making text output completely non-readable. >

Re: [Numpy-discussion] should get rid of the annoying numpy STDERR output

2011-03-24 Thread Skipper Seabold
On Thu, Mar 24, 2011 at 10:52 AM, eat wrote: > Hi > > On Thu, Mar 24, 2011 at 4:17 PM, Skipper Seabold >> Also, as Robert pointed out to me before np.errstate is a >> context-manager for ignoring these warnings. I often wrap optimization >> code with it. > > I didn't realize that its context-man

Re: [Numpy-discussion] should get rid of the annoying numpy STDERR output

2011-03-24 Thread eat
Hi On Thu, Mar 24, 2011 at 4:17 PM, Skipper Seabold wrote: > On Thu, Mar 24, 2011 at 9:45 AM, Ralf Gommers > wrote: > > 2011/3/24 Dmitrey : > >> > >> Hi > >> > >> 2011/3/24 Dmitrey > >>> > >>> >>> from numpy import inf, array > >>> >>> inf*0 > >>> nan > >>> > >>> (ok) > >>> > >>> >>> array(inf)

Re: [Numpy-discussion] should get rid of the annoying numpy STDERR output

2011-03-24 Thread Skipper Seabold
On Thu, Mar 24, 2011 at 9:45 AM, Ralf Gommers wrote: > 2011/3/24 Dmitrey : >> >> Hi >> >> 2011/3/24 Dmitrey >>> >>> >>> from numpy import inf, array >>> >>> inf*0 >>> nan >>> >>> (ok) >>> >>> >>> array(inf) * 0.0 >>> StdErr: Warning: invalid value encountered in multiply >>> nan >>> >>> My cycled

Re: [Numpy-discussion] should get rid of the annoying numpy STDERR output

2011-03-24 Thread Ralf Gommers
2011/3/24 Dmitrey : > > Hi > > 2011/3/24 Dmitrey >> >> >>> from numpy import inf, array >> >>> inf*0 >> nan >> >> (ok) >> >> >>> array(inf) * 0.0 >> StdErr: Warning: invalid value encountered in multiply >> nan >> >> My cycled calculations yields this thousands times slowing computations >> and ma

Re: [Numpy-discussion] should get rid of the annoying numpy STDERR output

2011-03-24 Thread Dmitrey
Hi 2011/3/24 Dmitrey >>> from numpy import inf, array >>> inf*0 nan (ok) >>> array(inf) * 0.0 StdErr: Warning: invalid value encountered in multiply nan My cycled calculations yields this thousands times slowing computat

Re: [Numpy-discussion] should get rid of the annoying numpy STDERR output

2011-03-24 Thread eat
Hi 2011/3/24 Dmitrey > >>> from numpy import inf, array > >>> inf*0 > nan > > (ok) > > >>> array(inf) * 0.0 > StdErr: Warning: invalid value encountered in multiply > nan > > My cycled calculations yields this thousands times slowing computations and > making text output completely non-readable

[Numpy-discussion] should get rid of the annoying numpy STDERR output

2011-03-24 Thread Dmitrey
>>> from numpy import inf, array >>> inf*0 nan (ok) >>> array(inf) * 0.0 StdErr: Warning: invalid value encountered in multiply nan My cycled calculations yields this thousands times slowing computations and making text output completely non-readable. >>> from numpy