Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 10:02 PM, Travis Oliphant wrote: >>> >>> Here are my needs: >>> >>> 1) How NAs are implemented cannot be end user visible. Having to pass >>> maskna=True is a problem. I suppose a solution is to set the flag to >>> true on every array inside of pandas so the user never

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Travis Oliphant
On Oct 29, 2011, at 7:24 PM, Eric Firing wrote: > On 10/29/2011 12:57 PM, Charles R Harris wrote: >> >> >> On Sat, Oct 29, 2011 at 4:47 PM, Eric Firing > > wrote: >> >>On 10/29/2011 12:02 PM, Olivier Delalleau wrote: >> >>> >>> I haven't been following the disc

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Travis Oliphant
>> >> Here are my needs: >> >> 1) How NAs are implemented cannot be end user visible. Having to pass >> maskna=True is a problem. I suppose a solution is to set the flag to >> true on every array inside of pandas so the user never knows (you >> mentioned someone else had some other solution, i co

Re: [Numpy-discussion] consensus

2011-10-29 Thread Benjamin Root
On Saturday, October 29, 2011, Jason Grout wrote: > On 10/29/11 5:02 PM, Olivier Delalleau wrote: >> I haven't been following the discussion closely, but wouldn't it be instead: >> a.mask[0:2] = True? >> >> It's something that I actually find a bit difficult to get right in the >> current numpy.ma

Re: [Numpy-discussion] Large numbers into float128

2011-10-29 Thread Charles R Harris
On Sat, Oct 29, 2011 at 8:49 PM, Matthew Brett wrote: > Hi, > > On Sat, Oct 29, 2011 at 3:55 PM, Matthew Brett > wrote: > > Hi, > > > > Can anyone think of a good way to set a float128 value to an > > arbitrarily large number? > > > > As in > > > > v = int_to_float128(some_value) > > > > ? > > >

Re: [Numpy-discussion] consensus

2011-10-29 Thread Jason Grout
On 10/29/11 5:02 PM, Olivier Delalleau wrote: > I haven't been following the discussion closely, but wouldn't it be instead: > a.mask[0:2] = True? > > It's something that I actually find a bit difficult to get right in the > current numpy.ma implementation: I would find more > int

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 7:48 PM, Charles R Harris wrote: > > > On Sat, Oct 29, 2011 at 7:47 PM, Matthew Brett > wrote: >> >> Hi, >> >> On Sat, Oct 29, 2011 at 4:11 PM, Matthew Brett >> wrote: >> > Hi, >> > >> > On Sat, Oct 29, 2011 at 2:59 PM, Charles R Harris >> > wrote: >> >> >> >> >> >>

Re: [Numpy-discussion] Large numbers into float128

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 3:55 PM, Matthew Brett wrote: > Hi, > > Can anyone think of a good way to set a float128 value to an > arbitrarily large number? > > As in > > v = int_to_float128(some_value) > > ? > > I'm trying things like > > v = np.float128(2**64+2) > > but, because (in other threa

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Charles R Harris
On Sat, Oct 29, 2011 at 7:47 PM, Matthew Brett wrote: > Hi, > > On Sat, Oct 29, 2011 at 4:11 PM, Matthew Brett > wrote: > > Hi, > > > > On Sat, Oct 29, 2011 at 2:59 PM, Charles R Harris > > wrote: > >> > >> > >> On Sat, Oct 29, 2011 at 3:55 PM, Matthew Brett > > >> wrote: > >>> > >>> Hi, > >>>

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 4:11 PM, Matthew Brett wrote: > Hi, > > On Sat, Oct 29, 2011 at 2:59 PM, Charles R Harris > wrote: >> >> >> On Sat, Oct 29, 2011 at 3:55 PM, Matthew Brett >> wrote: >>> >>> Hi, >>> >>> On Sat, Oct 29, 2011 at 2:48 PM, Ralf Gommers >>> wrote: >>> > >>> > >>> > On Sat

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Eric Firing
On 10/29/2011 12:57 PM, Charles R Harris wrote: > > > On Sat, Oct 29, 2011 at 4:47 PM, Eric Firing > wrote: > > On 10/29/2011 12:02 PM, Olivier Delalleau wrote: > > > > > I haven't been following the discussion closely, but wouldn't it > be instead: >

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 11:14 AM, Wes McKinney wrote: > On Fri, Oct 28, 2011 at 9:32 PM, Charles R Harris > wrote: >> >> >> On Fri, Oct 28, 2011 at 6:45 PM, Wes McKinney wrote: >>> >>> On Fri, Oct 28, 2011 at 7:53 PM, Benjamin Root wrote: >>> > >>> > >>> > On Friday, October 28, 2011, Matt

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 4:28 PM, Han Genuit wrote: > To be honest, you have been slandering a lot, also in previous > discussions, to get what you wanted. This is not a healthy way of > discussion, nor does it help in any way. That's a severe accusation. Please quote something I said that w

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Han Genuit
To be honest, you have been slandering a lot, also in previous discussions, to get what you wanted. This is not a healthy way of discussion, nor does it help in any way. There have been many people willing to listen and agree with you on points; and this is exactly what discussion is all about, bu

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 4:24 PM, Benjamin Root wrote: > > > On Saturday, October 29, 2011, Matthew Brett > wrote: >> Hi, >> >> On Sat, Oct 29, 2011 at 2:59 PM, Charles R Harris >> wrote: >>> >>> >>> On Sat, Oct 29, 2011 at 3:55 PM, Matthew Brett >>> wrote: Hi, On Sat, O

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 4:18 PM, Charles R Harris wrote: > > > On Sat, Oct 29, 2011 at 5:11 PM, Matthew Brett > wrote: >> >> Hi, >> >> On Sat, Oct 29, 2011 at 2:59 PM, Charles R Harris >> wrote: >> > >> > >> > On Sat, Oct 29, 2011 at 3:55 PM, Matthew Brett >> > wrote: >> >> >> >> Hi, >> >>

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Benjamin Root
On Saturday, October 29, 2011, Matthew Brett wrote: > Hi, > > On Sat, Oct 29, 2011 at 2:59 PM, Charles R Harris > wrote: >> >> >> On Sat, Oct 29, 2011 at 3:55 PM, Matthew Brett >> wrote: >>> >>> Hi, >>> >>> On Sat, Oct 29, 2011 at 2:48 PM, Ralf Gommers >>> wrote: >>> > >>> > >>> > On Sat, Oct 2

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Charles R Harris
On Sat, Oct 29, 2011 at 5:11 PM, Matthew Brett wrote: > Hi, > > On Sat, Oct 29, 2011 at 2:59 PM, Charles R Harris > wrote: > > > > > > On Sat, Oct 29, 2011 at 3:55 PM, Matthew Brett > > wrote: > >> > >> Hi, > >> > >> On Sat, Oct 29, 2011 at 2:48 PM, Ralf Gommers > >> wrote: > >> > > >> > > >> >

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Charles R Harris
On Sat, Oct 29, 2011 at 5:11 PM, Matthew Brett wrote: > Hi, > > On Sat, Oct 29, 2011 at 2:59 PM, Charles R Harris > wrote: > > > > > > On Sat, Oct 29, 2011 at 3:55 PM, Matthew Brett > > wrote: > >> > >> Hi, > >> > >> On Sat, Oct 29, 2011 at 2:48 PM, Ralf Gommers > >> wrote: > >> > > >> > > >> >

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Han Genuit
On Sun, Oct 30, 2011 at 12:47 AM, Eric Firing wrote: > On 10/29/2011 12:02 PM, Olivier Delalleau wrote: > >> >> I haven't been following the discussion closely, but wouldn't it be instead: >> a.mask[0:2] = True? > > That would be consistent with numpy.ma and the opposite of Mark's > implementation

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 2:59 PM, Charles R Harris wrote: > > > On Sat, Oct 29, 2011 at 3:55 PM, Matthew Brett > wrote: >> >> Hi, >> >> On Sat, Oct 29, 2011 at 2:48 PM, Ralf Gommers >> wrote: >> > >> > >> > On Sat, Oct 29, 2011 at 11:36 PM, Matthew Brett >> > >> > wrote: >> >> >> >> Hi, >>

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Charles R Harris
On Sat, Oct 29, 2011 at 4:47 PM, Eric Firing wrote: > On 10/29/2011 12:02 PM, Olivier Delalleau wrote: > > > > > I haven't been following the discussion closely, but wouldn't it be > instead: > > a.mask[0:2] = True? > > That would be consistent with numpy.ma and the opposite of Mark's > implement

[Numpy-discussion] Large numbers into float128

2011-10-29 Thread Matthew Brett
Hi, Can anyone think of a good way to set a float128 value to an arbitrarily large number? As in v = int_to_float128(some_value) ? I'm trying things like v = np.float128(2**64+2) but, because (in other threads) the float128 seems to be going through float64 on assignment, this loses precisio

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Eric Firing
On 10/29/2011 12:02 PM, Olivier Delalleau wrote: > > I haven't been following the discussion closely, but wouldn't it be instead: > a.mask[0:2] = True? That would be consistent with numpy.ma and the opposite of Mark's implementation. I can live with either, but I much prefer the numpy.ma versio

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Charles R Harris
On Sat, Oct 29, 2011 at 4:02 PM, Olivier Delalleau wrote: > 2011/10/29 Ralf Gommers > >> >> >> On Sat, Oct 29, 2011 at 11:36 PM, Matthew Brett >> wrote: >> >>> Hi, >>> >>> On Sat, Oct 29, 2011 at 1:48 PM, Matthew Brett >>> wrote: >>> > Hi, >>> > >>> > On Sat, Oct 29, 2011 at 1:44 PM, Ralf Gomm

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Olivier Delalleau
2011/10/29 Ralf Gommers > > > On Sat, Oct 29, 2011 at 11:36 PM, Matthew Brett > wrote: > >> Hi, >> >> On Sat, Oct 29, 2011 at 1:48 PM, Matthew Brett >> wrote: >> > Hi, >> > >> > On Sat, Oct 29, 2011 at 1:44 PM, Ralf Gommers >> > wrote: >> >> >> >> >> >> On Sat, Oct 29, 2011 at 9:04 PM, Matthew

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Charles R Harris
On Sat, Oct 29, 2011 at 3:55 PM, Matthew Brett wrote: > Hi, > > On Sat, Oct 29, 2011 at 2:48 PM, Ralf Gommers > wrote: > > > > > > On Sat, Oct 29, 2011 at 11:36 PM, Matthew Brett > > > wrote: > >> > >> Hi, > >> > >> On Sat, Oct 29, 2011 at 1:48 PM, Matthew Brett > > >> wrote: > >> > Hi, > >> >

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 2:48 PM, Ralf Gommers wrote: > > > On Sat, Oct 29, 2011 at 11:36 PM, Matthew Brett > wrote: >> >> Hi, >> >> On Sat, Oct 29, 2011 at 1:48 PM, Matthew Brett >> wrote: >> > Hi, >> > >> > On Sat, Oct 29, 2011 at 1:44 PM, Ralf Gommers >> > wrote: >> >> >> >> >> >> On Sat

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Ralf Gommers
On Sat, Oct 29, 2011 at 11:36 PM, Matthew Brett wrote: > Hi, > > On Sat, Oct 29, 2011 at 1:48 PM, Matthew Brett > wrote: > > Hi, > > > > On Sat, Oct 29, 2011 at 1:44 PM, Ralf Gommers > > wrote: > >> > >> > >> On Sat, Oct 29, 2011 at 9:04 PM, Matthew Brett > > >> wrote: > >>> > >>> Hi, > >>> > >

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 1:48 PM, Matthew Brett wrote: > Hi, > > On Sat, Oct 29, 2011 at 1:44 PM, Ralf Gommers > wrote: >> >> >> On Sat, Oct 29, 2011 at 9:04 PM, Matthew Brett >> wrote: >>> >>> Hi, >>> >>> On Sat, Oct 29, 2011 at 3:26 AM, Ralf Gommers >>> wrote: >>> > >>> > >>> > On Sat, Oc

Re: [Numpy-discussion] Conditional random variables

2011-10-29 Thread Janos
Ted To theo.to> writes: > > On 07/05/2011 11:07 AM, josef.pktd gmail.com wrote: > > For example sample x>=U and then sample y>=u-x. That's two univariate > > normal samples. > > Ah, that's what I was looking for! Many thanks! > You need to be careful, though - if you just sample x|x>=u and

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 1:44 PM, Ralf Gommers wrote: > > > On Sat, Oct 29, 2011 at 9:04 PM, Matthew Brett > wrote: >> >> Hi, >> >> On Sat, Oct 29, 2011 at 3:26 AM, Ralf Gommers >> wrote: >> > >> > >> > On Sat, Oct 29, 2011 at 1:37 AM, Matthew Brett >> > wrote: >> >> >> >> Hi, >> >> >> >> O

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Ralf Gommers
On Sat, Oct 29, 2011 at 9:04 PM, Matthew Brett wrote: > Hi, > > On Sat, Oct 29, 2011 at 3:26 AM, Ralf Gommers > wrote: > > > > > > On Sat, Oct 29, 2011 at 1:37 AM, Matthew Brett > > wrote: > >> > >> Hi, > >> > >> On Fri, Oct 28, 2011 at 4:21 PM, Ralf Gommers > >> wrote: > >> > > >> > > >> > On

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 1:05 PM, Charles R Harris wrote: > > > On Sat, Oct 29, 2011 at 1:41 PM, Benjamin Root wrote: >> >> >> On Saturday, October 29, 2011, Charles R Harris >> wrote: >> > >> > Who is counted in building a consensus? I tend to pay attention to those >> > who have made consi

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 12:41 PM, Charles R Harris wrote: > > > On Sat, Oct 29, 2011 at 1:26 PM, Matthew Brett > wrote: >> >> Hi, >> >> On Sat, Oct 29, 2011 at 12:19 PM, Charles R Harris >> wrote: >> > >> > >> > On Sat, Oct 29, 2011 at 1:04 PM, Matthew Brett >> > wrote: >> >> >> >> Hi, >>

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Charles R Harris
On Sat, Oct 29, 2011 at 1:41 PM, Benjamin Root wrote: > > > On Saturday, October 29, 2011, Charles R Harris > wrote: > > > > Who is counted in building a consensus? I tend to pay attention to those > who have made consistent contributions over the years, reviewed code, fixed > bugs, and have gen

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Charles R Harris
On Sat, Oct 29, 2011 at 1:26 PM, Matthew Brett wrote: > Hi, > > On Sat, Oct 29, 2011 at 12:19 PM, Charles R Harris > wrote: > > > > > > On Sat, Oct 29, 2011 at 1:04 PM, Matthew Brett > > wrote: > >> > >> Hi, > >> > >> On Sat, Oct 29, 2011 at 3:26 AM, Ralf Gommers > >> wrote: > >> > > >> > > >>

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Benjamin Root
On Saturday, October 29, 2011, Charles R Harris wrote: > > Who is counted in building a consensus? I tend to pay attention to those who have made consistent contributions over the years, reviewed code, fixed bugs, and have generally been active in numpy development. In any group participation is i

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 12:19 PM, Charles R Harris wrote: > > > On Sat, Oct 29, 2011 at 1:04 PM, Matthew Brett > wrote: >> >> Hi, >> >> On Sat, Oct 29, 2011 at 3:26 AM, Ralf Gommers >> wrote: >> > >> > >> > On Sat, Oct 29, 2011 at 1:37 AM, Matthew Brett >> > wrote: >> >> >> >> Hi, >> >> >>

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Charles R Harris
On Sat, Oct 29, 2011 at 1:04 PM, Matthew Brett wrote: > Hi, > > On Sat, Oct 29, 2011 at 3:26 AM, Ralf Gommers > wrote: > > > > > > On Sat, Oct 29, 2011 at 1:37 AM, Matthew Brett > > wrote: > >> > >> Hi, > >> > >> On Fri, Oct 28, 2011 at 4:21 PM, Ralf Gommers > >> wrote: > >> > > >> > > >> > On

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Sat, Oct 29, 2011 at 3:26 AM, Ralf Gommers wrote: > > > On Sat, Oct 29, 2011 at 1:37 AM, Matthew Brett > wrote: >> >> Hi, >> >> On Fri, Oct 28, 2011 at 4:21 PM, Ralf Gommers >> wrote: >> > >> > >> > On Sat, Oct 29, 2011 at 12:37 AM, Matthew Brett >> > >> > wrote: >> >> >> >> Hi, >> >> >

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Charles R Harris
On Sat, Oct 29, 2011 at 12:14 PM, Wes McKinney wrote: > On Fri, Oct 28, 2011 at 9:32 PM, Charles R Harris > wrote: > > > > > > On Fri, Oct 28, 2011 at 6:45 PM, Wes McKinney > wrote: > >> > >> On Fri, Oct 28, 2011 at 7:53 PM, Benjamin Root wrote: > >> > > >> > > >> > On Friday, October 28, 2011

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Matthew Brett
Hi, On Fri, Oct 28, 2011 at 8:38 PM, Benjamin Root wrote: > Matt, > > On Friday, October 28, 2011, Matthew Brett wrote: >> >>> Forget about rudeness or decision processes. >> >> No, that's a common mistake, which is to assume that any conversation >> about things which aren't technical, is not i

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Wes McKinney
On Fri, Oct 28, 2011 at 9:32 PM, Charles R Harris wrote: > > > On Fri, Oct 28, 2011 at 6:45 PM, Wes McKinney wrote: >> >> On Fri, Oct 28, 2011 at 7:53 PM, Benjamin Root wrote: >> > >> > >> > On Friday, October 28, 2011, Matthew Brett >> > wrote: >> >> Hi, >> >> >> >> On Fri, Oct 28, 2011 at 4:2

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Eric Firing
On 10/29/2011 12:26 AM, Ralf Gommers wrote: > The history of this discussion doesn't suggest it straightforward to get > a design right first time. It's a complex subject. > > The second part of your statement, "and then implement", sounds so > simple. The reality is that there are only a handful o

[Numpy-discussion] ANN: PyTables 2.3.1 released

2011-10-29 Thread Antonio Valentino
=== Announcing PyTables 2.3.1 === We are happy to announce PyTables 2.3.1. This is a bugfix release. Upgrading is recommended for users that are running PyTables in production environments. What's new == This release includes a small numb

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Ralf Gommers
On Sat, Oct 29, 2011 at 1:37 AM, Matthew Brett wrote: > Hi, > > On Fri, Oct 28, 2011 at 4:21 PM, Ralf Gommers > wrote: > > > > > > On Sat, Oct 29, 2011 at 12:37 AM, Matthew Brett > > > wrote: > >> > >> Hi, > >> > >> On Fri, Oct 28, 2011 at 3:14 PM, Charles R Harris > >> wrote: > >> >> > >> > >>

Re: [Numpy-discussion] consensus (was: NA masks in the next numpy release?)

2011-10-29 Thread Ralf Gommers
On Sat, Oct 29, 2011 at 3:32 AM, Charles R Harris wrote: > > > On Fri, Oct 28, 2011 at 6:45 PM, Wes McKinney wrote: > >> On Fri, Oct 28, 2011 at 7:53 PM, Benjamin Root wrote: >> > >> > >> > On Friday, October 28, 2011, Matthew Brett >> wrote: >> >> Hi, >> >> >> >> On Fri, Oct 28, 2011 at 4:21