Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Scott Sinclair
On 11 May 2012 08:12, Fernando Perez wrote: > On Thu, May 10, 2012 at 11:03 PM, Scott Sinclair > wrote: >> Having thought about it, a page on the website isn't a bad idea. I've >> added a note pointing to this discussion. The document now appears at >> http://numpy.scipy.org/NA-overview.html > >

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Fernando Perez
On Thu, May 10, 2012 at 11:03 PM, Scott Sinclair wrote: > Having thought about it, a page on the website isn't a bad idea. I've > added a note pointing to this discussion. The document now appears at > http://numpy.scipy.org/NA-overview.html Why not have a separate repo for neps/discussion docs?

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Scott Sinclair
On 11 May 2012 06:57, Travis Oliphant wrote: > > On May 10, 2012, at 3:40 AM, Scott Sinclair wrote: > >> On 9 May 2012 18:46, Travis Oliphant wrote: >>> The document is available here: >>>    https://github.com/numpy/numpy.scipy.org/blob/master/NA-overview.rst >> >> This is orthogonal to the disc

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Dag Sverre Seljebotn
On 05/11/2012 07:36 AM, Travis Oliphant wrote: >>> >>> I guess this mixture of Python-API and C-API is different from the way >>> the API tries to protect incorrect access. From the Python API, it. >>> should let everything through, because it's for Python code to use. From >>> the C API, it should

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Travis Oliphant
>> >> I guess this mixture of Python-API and C-API is different from the way >> the API tries to protect incorrect access. From the Python API, it. >> should let everything through, because it's for Python code to use. From >> the C API, it should default to not letting things through, because >>

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Travis Oliphant
On May 10, 2012, at 12:21 AM, Charles R Harris wrote: > > > On Wed, May 9, 2012 at 11:05 PM, Benjamin Root wrote: > > > On Wednesday, May 9, 2012, Nathaniel Smith wrote: > > > My only objection to this proposal is that committing to this approach > seems premature. The existing masked arra

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Travis Oliphant
On May 10, 2012, at 3:40 AM, Scott Sinclair wrote: > On 9 May 2012 18:46, Travis Oliphant wrote: >> The document is available here: >>https://github.com/numpy/numpy.scipy.org/blob/master/NA-overview.rst > > This is orthogonal to the discussion, but I'm curious as to why this > discussion do

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Matthew Brett
Hi, On Thu, May 10, 2012 at 2:43 AM, Nathaniel Smith wrote: > Hi Matthew, > > On Thu, May 10, 2012 at 12:01 AM, Matthew Brett > wrote: >>> The third proposal is certainly the best one from Cython's perspective; >>> and I imagine for those writing C extensions against the C API too. >>> Having P

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn wrote: >On 05/11/2012 01:06 AM, Mark Wiebe wrote: >> On Thu, May 10, 2012 at 5:47 PM, Dag Sverre Seljebotn >> mailto:d.s.seljeb...@astro.uio.no>> >wrote: >> >> On 05/11/2012 12:28 AM, Mark Wiebe wrote: >> > I did some searching for typical Cython and C code which >

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn wrote: >On 05/11/2012 01:06 AM, Mark Wiebe wrote: >> On Thu, May 10, 2012 at 5:47 PM, Dag Sverre Seljebotn >> mailto:d.s.seljeb...@astro.uio.no>> >wrote: >> >> On 05/11/2012 12:28 AM, Mark Wiebe wrote: >> > I did some searching for typical Cython and C code which >

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Dag Sverre Seljebotn
On 05/11/2012 01:06 AM, Mark Wiebe wrote: > On Thu, May 10, 2012 at 5:47 PM, Dag Sverre Seljebotn > mailto:d.s.seljeb...@astro.uio.no>> wrote: > > On 05/11/2012 12:28 AM, Mark Wiebe wrote: > > I did some searching for typical Cython and C code which accesses > numpy > > arrays, an

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Mark Wiebe
On Thu, May 10, 2012 at 5:47 PM, Dag Sverre Seljebotn < d.s.seljeb...@astro.uio.no> wrote: > On 05/11/2012 12:28 AM, Mark Wiebe wrote: > > I did some searching for typical Cython and C code which accesses numpy > > arrays, and added a section to the NEP describing how they behave in the > > curren

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Dag Sverre Seljebotn
On 05/11/2012 12:47 AM, Dag Sverre Seljebotn wrote: > On 05/11/2012 12:28 AM, Mark Wiebe wrote: >> I did some searching for typical Cython and C code which accesses numpy >> arrays, and added a section to the NEP describing how they behave in the >> current implementation. Cython code which uses ei

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Dag Sverre Seljebotn
On 05/11/2012 12:28 AM, Mark Wiebe wrote: > I did some searching for typical Cython and C code which accesses numpy > arrays, and added a section to the NEP describing how they behave in the > current implementation. Cython code which uses either straight Python > access or the buffer protocol is f

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Mark Wiebe
On Thu, May 10, 2012 at 5:27 PM, Dag Sverre Seljebotn < d.s.seljeb...@astro.uio.no> wrote: > On 05/10/2012 08:23 PM, Chris Barker wrote: > > On Thu, May 10, 2012 at 2:38 AM, Dag Sverre Seljebotn > > wrote: > >> What would serve me? I use NumPy as a glorified "double*". > > > >> all I want is my

[Numpy-discussion] NA-mask interactions with existing C code

2012-05-10 Thread Mark Wiebe
I did some searching for typical Cython and C code which accesses numpy arrays, and added a section to the NEP describing how they behave in the current implementation. Cython code which uses either straight Python access or the buffer protocol is fine (after a bugfix in numpy, it wasn't failing cu

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Dag Sverre Seljebotn
On 05/10/2012 08:23 PM, Chris Barker wrote: > On Thu, May 10, 2012 at 2:38 AM, Dag Sverre Seljebotn > wrote: >> What would serve me? I use NumPy as a glorified "double*". > >> all I want is my glorified >> "double*". I'm probably not a representative user.) > > Actually, I think you are represent

Re: [Numpy-discussion] ANN: NumPy 1.6.2 release candidate 1

2012-05-10 Thread Frédéric Bastien
It is just to tell that all test pass here on Fedora 14 and all Theano pass with this rc. thanks Fred On Wed, May 9, 2012 at 11:05 PM, Charles R Harris wrote: > > > On Wed, May 9, 2012 at 12:40 PM, Sandro Tosi wrote: >> >> On Sat, May 5, 2012 at 8:15 PM, Ralf Gommers >> wrote: >> > Please tes

[Numpy-discussion] spurious space in printing record arrays?

2012-05-10 Thread Benjamin Root
Just noticed this in the output from printing some numpy record arrays: [[('2008081712', -24, -78.0, 20.10381469727, 45.0, -999.0, 0.0)] [ ('2008081718', -18, -79.584741211, 20.70762939453, 45.0, -999.0, 0.0)] [ ('2008081800', -12, -80.3305175781, 21.10381469727, 45.0, -999.0

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Travis Oliphant
On May 10, 2012, at 1:23 PM, Chris Barker wrote: > On Thu, May 10, 2012 at 2:38 AM, Dag Sverre Seljebotn > wrote: >> What would serve me? I use NumPy as a glorified "double*". > >> all I want is my glorified >> "double*". I'm probably not a representative user.) > > Actually, I think you are r

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Charles R Harris
On Thu, May 10, 2012 at 1:14 PM, Charles R Harris wrote: > > > On Thu, May 10, 2012 at 12:52 PM, Scott Ransom wrote: > >> On 05/10/2012 02:23 PM, Chris Barker wrote: >> > On Thu, May 10, 2012 at 2:38 AM, Dag Sverre Seljebotn >> > wrote: >> >> What would serve me? I use NumPy as a glorified "do

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Charles R Harris
On Thu, May 10, 2012 at 12:52 PM, Scott Ransom wrote: > On 05/10/2012 02:23 PM, Chris Barker wrote: > > On Thu, May 10, 2012 at 2:38 AM, Dag Sverre Seljebotn > > wrote: > >> What would serve me? I use NumPy as a glorified "double*". > > > >> all I want is my glorified > >> "double*". I'm probab

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Inati, Souheil (NIH/NIMH) [E]
On May 10, 2012, at 2:23 PM, Chris Barker wrote: > On Thu, May 10, 2012 at 2:38 AM, Dag Sverre Seljebotn > wrote: >> What would serve me? I use NumPy as a glorified "double*". > >> all I want is my glorified >> "double*". I'm probably not a representative user.) > > Actually, I think you are r

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Scott Ransom
On 05/10/2012 02:23 PM, Chris Barker wrote: > On Thu, May 10, 2012 at 2:38 AM, Dag Sverre Seljebotn > wrote: >> What would serve me? I use NumPy as a glorified "double*". > >> all I want is my glorified >> "double*". I'm probably not a representative user.) > > Actually, I think you are represent

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Chris Barker
On Thu, May 10, 2012 at 2:38 AM, Dag Sverre Seljebotn wrote: > What would serve me? I use NumPy as a glorified "double*". > all I want is my glorified > "double*". I'm probably not a representative user.) Actually, I think you are representative of a LOT of users -- it turns, out, whether Jim Hu

[Numpy-discussion] read line mixed with string and number?

2012-05-10 Thread Chao YUE
Dear all, I have files which contain lines like this: 30516F5 Sep1985 1-Day RainTrace 0.23.2 Trace 0.0 0.00.00.00.20.0 Trace 29.20.00.00.0 0.01.8 30516F5 Sep1985 1-Day SnowTrace 0.00.00.0 14.8 10.1 Trace 0.00.0

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Dag Sverre Seljebotn
On 05/10/2012 11:38 AM, Dag Sverre Seljebotn wrote: > On 05/10/2012 10:40 AM, Charles R Harris wrote: >> >> >> On Thu, May 10, 2012 at 1:10 AM, Dag Sverre Seljebotn >> mailto:d.s.seljeb...@astro.uio.no>> wrote: >> >> On 05/10/2012 06:18 AM, Charles R Harris wrote: >> > >> > >>

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Dag Sverre Seljebotn
On 05/10/2012 11:38 AM, Dag Sverre Seljebotn wrote: > On 05/10/2012 10:40 AM, Charles R Harris wrote: >> >> >> On Thu, May 10, 2012 at 1:10 AM, Dag Sverre Seljebotn >> mailto:d.s.seljeb...@astro.uio.no>> wrote: >> >> On 05/10/2012 06:18 AM, Charles R Harris wrote: >> > >> > >>

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Nathaniel Smith
Hi Matthew, On Thu, May 10, 2012 at 12:01 AM, Matthew Brett wrote: >> The third proposal is certainly the best one from Cython's perspective; >> and I imagine for those writing C extensions against the C API too. >> Having PyType_Check fail for ndmasked is a very good way of having code >> fail t

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Dag Sverre Seljebotn
On 05/10/2012 10:40 AM, Charles R Harris wrote: > > > On Thu, May 10, 2012 at 1:10 AM, Dag Sverre Seljebotn > mailto:d.s.seljeb...@astro.uio.no>> wrote: > > On 05/10/2012 06:18 AM, Charles R Harris wrote: > > > > > > On Wed, May 9, 2012 at 9:54 PM, Dag Sverre Seljebotn > > m

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Dag Sverre Seljebotn
On 05/10/2012 06:05 AM, Dag Sverre Seljebotn wrote: > On 05/10/2012 01:01 AM, Matthew Brett wrote: >> Hi, >> >> On Wed, May 9, 2012 at 12:44 PM, Dag Sverre Seljebotn >>wrote: >>> On 05/09/2012 06:46 PM, Travis Oliphant wrote: Hey all, Nathaniel and Mark have worked very hard on a

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Charles R Harris
On Thu, May 10, 2012 at 1:10 AM, Dag Sverre Seljebotn < d.s.seljeb...@astro.uio.no> wrote: > On 05/10/2012 06:18 AM, Charles R Harris wrote: > > > > > > On Wed, May 9, 2012 at 9:54 PM, Dag Sverre Seljebotn > > mailto:d.s.seljeb...@astro.uio.no>> wrote: > > > > Sorry everyone for being so dense

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Scott Sinclair
On 9 May 2012 18:46, Travis Oliphant wrote: > The document is available here: >    https://github.com/numpy/numpy.scipy.org/blob/master/NA-overview.rst This is orthogonal to the discussion, but I'm curious as to why this discussion document has landed in the website repo? I suppose it's not a re

Re: [Numpy-discussion] Missing data wrap-up and request for comments

2012-05-10 Thread Gael Varoquaux
On Wed, May 09, 2012 at 02:35:26PM -0500, Travis Oliphant wrote: >  Basically it buys not forcing *all* NumPy users (on the C-API level) to >now deal with a masked array.    I know this push is a feature that is >part of Mark's intention (as it pushes downstream libraries to think about

Re: [Numpy-discussion] Masking through generator arrays

2012-05-10 Thread Dag Sverre Seljebotn
On 05/10/2012 06:18 AM, Charles R Harris wrote: > > > On Wed, May 9, 2012 at 9:54 PM, Dag Sverre Seljebotn > mailto:d.s.seljeb...@astro.uio.no>> wrote: > > Sorry everyone for being so dense and contaminating that other thread. > Here's a new thread where I can respond to Nathaniel's respons