Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Eric Firing
On 07/01/2011 06:40 PM, Nathaniel Smith wrote: > On Fri, Jul 1, 2011 at 9:29 AM, Christopher Jordan-Squire > BTW, you can't access the memory of a masked value by taking a view, > at least if I'm reading this version of the NEP correctly, and it > seems to be the latest: > > https://github.com

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Nathaniel Smith
On Fri, Jul 1, 2011 at 9:29 AM, Christopher Jordan-Squire wrote: > This is kind of late to be jumping into the 'long thread of doom', but I've > been following most of the posts, so I'd figured I'd throw in my 2 cents. > I'm Mark's officemate over the summer, and we've been talking daily about > h

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Nathaniel Smith
On Fri, Jul 1, 2011 at 9:29 AM, Benjamin Root wrote: > On Fri, Jul 1, 2011 at 11:20 AM, Matthew Brett > wrote: >> On Fri, Jul 1, 2011 at 5:17 PM, Benjamin Root wrote: >> > For more complicated functions like pcolor() and contour(), the arrays >> > needs >> > to know what the status of the neighb

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Nathaniel Smith
On Fri, Jul 1, 2011 at 9:18 AM, Bruce Southey wrote: > I am sorry that that is NOT true - DON'T just lump every one into this > when they have clearly stated the opposite! Missing values are nothing > special to me, just reality. There are many statistical applications > where masking is extremely

Re: [Numpy-discussion] broacasting question

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 6:38 PM, Thomas K Gamble wrote: > > On Thu, Jun 30, 2011 at 11:32 AM, Thomas K Gamble > > > > wrote: > > > I'm trying to convert some IDL code to python/numpy and i'm having some > > > trouble understanding the rules for boradcasting during some > operations. > > > example:

Re: [Numpy-discussion] broacasting question

2011-07-01 Thread Thomas K Gamble
> On Thu, Jun 30, 2011 at 11:32 AM, Thomas K Gamble > > wrote: > > I'm trying to convert some IDL code to python/numpy and i'm having some > > trouble understanding the rules for boradcasting during some operations. > > example: > > > > given the following arrays: > > a = array((2048,3577), dtype

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Nathaniel Smith
On Fri, Jul 1, 2011 at 2:04 PM, Pierre GM wrote: > Mask an array with NAs? You should be able to, as IGNORE<>NA. Mask an array > with a view? That's sharing the data with a different mask, you should be > able to, too (np.ma works like that). I think you might be getting the proposals mixed up...

[Numpy-discussion] ANN: NumPy 1.6.1 release candidate 2

2011-07-01 Thread Ralf Gommers
Hi, I am pleased to announce the availability (only a little later than planned) of the second release candidate of NumPy 1.6.1. This is a bugfix release, list of fixed bugs: #1834 einsum fails for specific shapes #1837 einsum throws nan or freezes python for specific array shapes #1838 obje

Re: [Numpy-discussion] Missing/accumulating data

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 2:29 PM, Joe Harrington wrote: > Mark Wiebe : > > > With a non-boolean alpha mask, there's an implication of a > > multiplication operator in there somewhere, but with a boolean mask, > > the data can be any data whatsoever that doesn't necessarily support > > any kind of b

Re: [Numpy-discussion] Missing/accumulating data

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 3:07 PM, Eric Firing wrote: > On 07/01/2011 10:27 AM, Charles R Harris wrote: > > > > > > On Fri, Jul 1, 2011 at 1:39 PM, Christopher Barker > > mailto:chris.bar...@noaa.gov>> wrote: > > > > Joe Harrington wrote: > > > All > > > that has to happen is to allow

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 3:04 PM, Pierre GM wrote: > Mask an array with NAs? You should be able to, as IGNORE<>NA. Mask an array > with a view? That's sharing the data with a different mask, > I was thinking about a mask on top of a mask, i.e., start with a bare array, take a masked view of that,

Re: [Numpy-discussion] Missing/accumulating data

2011-07-01 Thread Eric Firing
On 07/01/2011 10:27 AM, Charles R Harris wrote: > > > On Fri, Jul 1, 2011 at 1:39 PM, Christopher Barker > mailto:chris.bar...@noaa.gov>> wrote: > > Joe Harrington wrote: > > All > > that has to happen is to allow the sense of the mask to be FALSE > = the > > data are bad, T

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Pierre GM
Mask an array with NAs? You should be able to, as IGNORE<>NA. Mask an array with a view? That's sharing the data with a different mask, you should be able to, too (np.ma works like that). Sharing mask? That'd be great if we could... That way, there'd be almost nothing left to do to adapt np.ma... O

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 2:42 PM, Mark Wiebe wrote: > On Fri, Jul 1, 2011 at 3:36 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Fri, Jul 1, 2011 at 2:33 PM, Mark Wiebe wrote: >> >>> On Fri, Jul 1, 2011 at 3:29 PM, Charles R Harris < >>> charlesr.har...@gmail.com> wrote:

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 3:36 PM, Charles R Harris wrote: > > > On Fri, Jul 1, 2011 at 2:33 PM, Mark Wiebe wrote: > >> On Fri, Jul 1, 2011 at 3:29 PM, Charles R Harris < >> charlesr.har...@gmail.com> wrote: >> >>> >>> >>> On Fri, Jul 1, 2011 at 2:26 PM, Mark Wiebe wrote: >>> On Fri, Jul 1, 20

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 2:33 PM, Mark Wiebe wrote: > On Fri, Jul 1, 2011 at 3:29 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Fri, Jul 1, 2011 at 2:26 PM, Mark Wiebe wrote: >> >>> On Fri, Jul 1, 2011 at 3:20 PM, Mark Wiebe wrote: >>> On Fri, Jul 1, 2011 at 3:01 P

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 3:32 PM, Charles R Harris wrote: > On Fri, Jul 1, 2011 at 1:46 PM, Dag Sverre Seljebotn < > d.s.seljeb...@astro.uio.no> wrote: > >> I propose a simple idea *for the long term* for generalizing Mark's >> proposal, that I hope may perhaps put some people behind Mark's concrete

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 3:29 PM, Charles R Harris wrote: > > > On Fri, Jul 1, 2011 at 2:26 PM, Mark Wiebe wrote: > >> On Fri, Jul 1, 2011 at 3:20 PM, Mark Wiebe wrote: >> >>> On Fri, Jul 1, 2011 at 3:01 PM, Skipper Seabold wrote: >>> On Fri, Jul 1, 2011 at 3:46 PM, Dag Sverre Seljebotn

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 1:46 PM, Dag Sverre Seljebotn < d.s.seljeb...@astro.uio.no> wrote: > I propose a simple idea *for the long term* for generalizing Mark's > proposal, that I hope may perhaps put some people behind Mark's concrete > proposal in the short term. > > If key feature missing in Mar

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 2:26 PM, Mark Wiebe wrote: > On Fri, Jul 1, 2011 at 3:20 PM, Mark Wiebe wrote: > >> On Fri, Jul 1, 2011 at 3:01 PM, Skipper Seabold wrote: >> >>> On Fri, Jul 1, 2011 at 3:46 PM, Dag Sverre Seljebotn >>> wrote: >>> > I propose a simple idea *for the long term* for generali

Re: [Numpy-discussion] Missing/accumulating data

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 1:39 PM, Christopher Barker wrote: > Joe Harrington wrote: > > All > > that has to happen is to allow the sense of the mask to be FALSE = the > > data are bad, TRUE = the data are good, and allow (not require) the > > mask to be of any numerical type, or at least of integer

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 3:20 PM, Mark Wiebe wrote: > On Fri, Jul 1, 2011 at 3:01 PM, Skipper Seabold wrote: > >> On Fri, Jul 1, 2011 at 3:46 PM, Dag Sverre Seljebotn >> wrote: >> > I propose a simple idea *for the long term* for generalizing Mark's >> > proposal, that I hope may perhaps put some

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 3:01 PM, Skipper Seabold wrote: > On Fri, Jul 1, 2011 at 3:46 PM, Dag Sverre Seljebotn > wrote: > > I propose a simple idea *for the long term* for generalizing Mark's > > proposal, that I hope may perhaps put some people behind Mark's concrete > > proposal in the short te

Re: [Numpy-discussion] conference call / gotomeeting to discuss the missing data design

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 3:01 PM, Benjamin Root wrote: > On Fri, Jul 1, 2011 at 2:22 PM, Mark Wiebe wrote: > >> The missing data thread has gotten a bit heated, and after sitting down >> with Travis to discuss the issues a bit, we've concluded that it would be >> nice to do a call with everyone wh

Re: [Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Skipper Seabold
On Fri, Jul 1, 2011 at 3:46 PM, Dag Sverre Seljebotn wrote: > I propose a simple idea *for the long term* for generalizing Mark's > proposal, that I hope may perhaps put some people behind Mark's concrete > proposal in the short term. > > If key feature missing in Mark's proposal is the ability to

Re: [Numpy-discussion] conference call / gotomeeting to discuss the missing data design

2011-07-01 Thread Benjamin Root
On Fri, Jul 1, 2011 at 2:22 PM, Mark Wiebe wrote: > The missing data thread has gotten a bit heated, and after sitting down > with Travis to discuss the issues a bit, we've concluded that it would be > nice to do a call with everyone who's interested in the discussion with > better communication

[Numpy-discussion] An NA compromise idea -- many-NA

2011-07-01 Thread Dag Sverre Seljebotn
I propose a simple idea *for the long term* for generalizing Mark's proposal, that I hope may perhaps put some people behind Mark's concrete proposal in the short term. If key feature missing in Mark's proposal is the ability to distinguish between different reason for NA-ness; IGNORE vs. NA. H

Re: [Numpy-discussion] Missing/accumulating data

2011-07-01 Thread Christopher Barker
Joe Harrington wrote: > All > that has to happen is to allow the sense of the mask to be FALSE = the > data are bad, TRUE = the data are good, and allow (not require) the > mask to be of any numerical type, or at least of integer type as well > as boolean. quick note on this: I like the "FALSE =

Re: [Numpy-discussion] Missing/accumulating data

2011-07-01 Thread Joe Harrington
Mark Wiebe : > With a non-boolean alpha mask, there's an implication of a > multiplication operator in there somewhere, but with a boolean mask, > the data can be any data whatsoever that doesn't necessarily support > any kind of blending operations. My goal in raising the point is to find a comm

[Numpy-discussion] conference call / gotomeeting to discuss the missing data design

2011-07-01 Thread Mark Wiebe
The missing data thread has gotten a bit heated, and after sitting down with Travis to discuss the issues a bit, we've concluded that it would be nice to do a call with everyone who's interested in the discussion with better communication bandwidth. There are lots of good ideas out there, and it is

Re: [Numpy-discussion] Moving lib.recfunctions?

2011-07-01 Thread Skipper Seabold
On Fri, Jul 1, 2011 at 3:05 PM, Benjamin Root wrote: > > > On Fri, Jul 1, 2011 at 12:59 PM, Skipper Seabold > wrote: >> >> lib.recfunctions has never been fully advertised. The two bugs I just >> discovered lead me to believe that it's not that well vetted, but it >> is useful. I can't be the onl

Re: [Numpy-discussion] Moving lib.recfunctions?

2011-07-01 Thread Benjamin Root
On Fri, Jul 1, 2011 at 12:59 PM, Skipper Seabold wrote: > lib.recfunctions has never been fully advertised. The two bugs I just > discovered lead me to believe that it's not that well vetted, but it > is useful. I can't be the only one using these? > > Nope, you aren't the only one. I use them in

Re: [Numpy-discussion] Moving lib.recfunctions?

2011-07-01 Thread Skipper Seabold
On Fri, Jul 1, 2011 at 2:22 PM, wrote: > On Fri, Jul 1, 2011 at 1:59 PM, Skipper Seabold wrote: >> lib.recfunctions has never been fully advertised. The two bugs I just >> discovered lead me to believe that it's not that well vetted, but it >> is useful. I can't be the only one using these? >> >

Re: [Numpy-discussion] Current status of 64 bit windows support.

2011-07-01 Thread Sturla Molden
Den 01.07.2011 19:22, skrev Charles R Harris: > Just curious as to what folks know about the current status of the > free windows 64 bit compilers. I know things were dicey with gcc and > gfortran some two years ago, but... well, two years have passed. This Windows 7 SDK is free (as in beer). It

Re: [Numpy-discussion] Moving lib.recfunctions?

2011-07-01 Thread josef . pktd
On Fri, Jul 1, 2011 at 1:59 PM, Skipper Seabold wrote: > lib.recfunctions has never been fully advertised. The two bugs I just > discovered lead me to believe that it's not that well vetted, but it > is useful. I can't be the only one using these? > > What do people think of either deprecating lib

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Pierre GM
On Jul 1, 2011 7:14 PM, "Mark Wiebe" wrote: > > On Fri, Jul 1, 2011 at 10:15 AM, Nathaniel Smith wrote: >> >> On Fri, Jul 1, 2011 at 7:09 AM, Mark Wiebe wrote: >> > On Fri, Jul 1, 2011 at 6:58 AM, Matthew Brett >> > wrote: >> >> Do you see problems with the alterNEP proposal? >> > >> > Yes, I r

[Numpy-discussion] Moving lib.recfunctions?

2011-07-01 Thread Skipper Seabold
lib.recfunctions has never been fully advertised. The two bugs I just discovered lead me to believe that it's not that well vetted, but it is useful. I can't be the only one using these? What do people think of either deprecating lib.recfunctions or at least importing them into the numpy.rec names

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Lluís
Nathaniel Smith writes: > On Fri, Jul 1, 2011 at 7:09 AM, Mark Wiebe wrote: >> On Fri, Jul 1, 2011 at 6:58 AM, Matthew Brett >> wrote: >>> Do you see problems with the alterNEP proposal? >> >> Yes, I really like my design as it stands now, and the alterNEP removes a >> lot of the abstraction an

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Lluís
Matthew Brett writes: >>> > Mainly: Reduced interoperability >>> >>> Meaning? >> >> You can't switch between the two approaches without big changes in your >> code. > Lluis provided a case, and it was obscure. That switch seems like a > rare or non-existent use-case that should not guide the AP

[Numpy-discussion] Current status of 64 bit windows support.

2011-07-01 Thread Charles R Harris
Just curious as to what folks know about the current status of the free windows 64 bit compilers. I know things were dicey with gcc and gfortran some two years ago, but... well, two years have passed. This Chuck ___ NumPy-Discussion mailing list NumPy-Di

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 10:15 AM, Nathaniel Smith wrote: > On Fri, Jul 1, 2011 at 7:09 AM, Mark Wiebe wrote: > > On Fri, Jul 1, 2011 at 6:58 AM, Matthew Brett > > wrote: > >> Do you see problems with the alterNEP proposal? > > > > Yes, I really like my design as it stands now, and the alterNEP r

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Christopher Jordan-Squire
This is kind of late to be jumping into the 'long thread of doom', but I've been following most of the posts, so I'd figured I'd throw in my 2 cents. I'm Mark's officemate over the summer, and we've been talking daily about his design. I was skeptical of various details at first, but by now Mark's

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Benjamin Root
On Fri, Jul 1, 2011 at 11:20 AM, Matthew Brett wrote: > Hi, > > On Fri, Jul 1, 2011 at 5:17 PM, Benjamin Root wrote: > > > > > > On Fri, Jul 1, 2011 at 11:00 AM, Matthew Brett > > wrote: > >> > >> > You can't switch between the two approaches without big changes in > your > >> > code. > >> > >>

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Matthew Brett
Hi, On Fri, Jul 1, 2011 at 5:18 PM, Bruce Southey wrote: > On 07/01/2011 10:15 AM, Nathaniel Smith wrote: > I really find that you are 'splitting hairs' in your arguments as it > really has to be up to the application on how missing values and NaN > have to be handled. I see no difference betwee

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Matthew Brett
Hi, On Fri, Jul 1, 2011 at 5:17 PM, Benjamin Root wrote: > > > On Fri, Jul 1, 2011 at 11:00 AM, Matthew Brett > wrote: >> >> > You can't switch between the two approaches without big changes in your >> > code. >> >> > >> Lluis provided a case, and it was obscure.  That switch seems like a >> rar

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Bruce Southey
On 07/01/2011 10:15 AM, Nathaniel Smith wrote: > On Fri, Jul 1, 2011 at 7:09 AM, Mark Wiebe wrote: >> On Fri, Jul 1, 2011 at 6:58 AM, Matthew Brett >> wrote: >>> Do you see problems with the alterNEP proposal? >> Yes, I really like my design as it stands now, and the alterNEP removes a >> lot of t

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Matthew Brett
Hi, On Fri, Jul 1, 2011 at 5:15 PM, Charles R Harris wrote: > > > On Fri, Jul 1, 2011 at 10:00 AM, Matthew Brett > wrote: >> >> Hi, >> >> On Fri, Jul 1, 2011 at 4:34 PM, Mark Wiebe wrote: >> > On Fri, Jul 1, 2011 at 9:50 AM, Matthew Brett >> > wrote: >> >> >> >> Hi, >> >> >> >> On Fri, Jul 1,

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Benjamin Root
On Fri, Jul 1, 2011 at 11:00 AM, Matthew Brett wrote: > > > You can't switch between the two approaches without big changes in your > > code. > > > > Lluis provided a case, and it was obscure. That switch seems like a > rare or non-existent use-case that should not guide the API. > > Just to resp

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 10:00 AM, Matthew Brett wrote: > Hi, > > On Fri, Jul 1, 2011 at 4:34 PM, Mark Wiebe wrote: > > On Fri, Jul 1, 2011 at 9:50 AM, Matthew Brett > > wrote: > >> > >> Hi, > >> > >> On Fri, Jul 1, 2011 at 3:09 PM, Mark Wiebe wrote: > >> > On Fri, Jul 1, 2011 at 6:58 AM, Matthew

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Matthew Brett
Hi, On Fri, Jul 1, 2011 at 4:48 PM, Charles R Harris wrote: > > > On Fri, Jul 1, 2011 at 9:34 AM, Mark Wiebe wrote: >> >> On Fri, Jul 1, 2011 at 9:50 AM, Matthew Brett >> wrote: >>> >>> Hi, >>> >>> On Fri, Jul 1, 2011 at 3:09 PM, Mark Wiebe wrote: >>> > On Fri, Jul 1, 2011 at 6:58 AM, Matthew

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Matthew Brett
Hi, On Fri, Jul 1, 2011 at 4:34 PM, Mark Wiebe wrote: > On Fri, Jul 1, 2011 at 9:50 AM, Matthew Brett > wrote: >> >> Hi, >> >> On Fri, Jul 1, 2011 at 3:09 PM, Mark Wiebe wrote: >> > On Fri, Jul 1, 2011 at 6:58 AM, Matthew Brett >> > wrote: >> >> >> >> Hi, >> >> >> >> On Fri, Jul 1, 2011 at 2:3

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 9:34 AM, Mark Wiebe wrote: > On Fri, Jul 1, 2011 at 9:50 AM, Matthew Brett wrote: > >> Hi, >> >> On Fri, Jul 1, 2011 at 3:09 PM, Mark Wiebe wrote: >> > On Fri, Jul 1, 2011 at 6:58 AM, Matthew Brett >> > wrote: >> >> >> >> Hi, >> >> >> >> On Fri, Jul 1, 2011 at 2:36 AM, Ke

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 9:50 AM, Matthew Brett wrote: > Hi, > > On Fri, Jul 1, 2011 at 3:09 PM, Mark Wiebe wrote: > > On Fri, Jul 1, 2011 at 6:58 AM, Matthew Brett > > wrote: > >> > >> Hi, > >> > >> On Fri, Jul 1, 2011 at 2:36 AM, Keith Goodman > wrote: > >> > On Thu, Jun 30, 2011 at 10:51 AM, N

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Christopher Barker
Matthew Brett wrote: > should raise an error. On the other hand, if I make a normal array: > > arr = np.array([1.0, 2.0, 7.0]) > > and then do this: > > arr.visible[2] = False > > then either I should raise an error (it's not a masked array), or, > more magically, construct a mask on the fly.

Re: [Numpy-discussion] Using numpy array in C code ?

2011-07-01 Thread 刘振海
static PyObject * my_c_method(PyObject *self, PyObject *args) { PyArrayObject *array; double *points; PyArg_ParseTuple(args, "O", &array); points=(double*)array->data printf("points[0] = %f \n",points[0]); } It is should be like that. 2011/7/1 Pauli Virtanen > Hi, > > Fri, 01

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Nathaniel Smith
On Fri, Jul 1, 2011 at 7:09 AM, Mark Wiebe wrote: > On Fri, Jul 1, 2011 at 6:58 AM, Matthew Brett > wrote: >> Do you see problems with the alterNEP proposal? > > Yes, I really like my design as it stands now, and the alterNEP removes a > lot of the abstraction and interoperability that are in my

Re: [Numpy-discussion] Using numpy array in C code ?

2011-07-01 Thread Pauli Virtanen
Hi, Fri, 01 Jul 2011 16:45:47 +0200, Marc Labadens wrote: > I am trying to interface some python code using numpy array with some C > code. You can read: http://docs.scipy.org/doc/numpy/user/c-info.how-to-extend.html#writing-an-extension-module However, using Cython often saves you from writing

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Matthew Brett
Hi, On Fri, Jul 1, 2011 at 3:09 PM, Mark Wiebe wrote: > On Fri, Jul 1, 2011 at 6:58 AM, Matthew Brett > wrote: >> >> Hi, >> >> On Fri, Jul 1, 2011 at 2:36 AM, Keith Goodman wrote: >> > On Thu, Jun 30, 2011 at 10:51 AM, Nathaniel Smith wrote: >> >> On Thu, Jun 30, 2011 at 6:31 AM, Matthew Brett

[Numpy-discussion] Using numpy array in C code ?

2011-07-01 Thread Marc Labadens
Hello ! I am trying to interface some python code using numpy array with some C code. I have tried out this: - - - - - - - - Python code - - - - - - - - import numpy a = numpy.array([1.4, 2.4, 3.6], dtype=float) my_c_method(a) # call to the C code - - - - - - - - C code - - - - - - - - - - -

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 6:58 AM, Matthew Brett wrote: > Hi, > > On Fri, Jul 1, 2011 at 2:36 AM, Keith Goodman wrote: > > On Thu, Jun 30, 2011 at 10:51 AM, Nathaniel Smith wrote: > >> On Thu, Jun 30, 2011 at 6:31 AM, Matthew Brett > wrote: > >>> In the interest of making the discussion as concret

Re: [Numpy-discussion] broacasting question

2011-07-01 Thread Charles R Harris
On Thu, Jun 30, 2011 at 11:32 AM, Thomas K Gamble wrote: > I'm trying to convert some IDL code to python/numpy and i'm having some > trouble understanding the rules for boradcasting during some operations. > example: > > given the following arrays: > a = array((2048,3577), dtype=float) > b = array

Re: [Numpy-discussion] review request: introductory datetime documentation

2011-07-01 Thread Mark Wiebe
On Fri, Jul 1, 2011 at 6:01 AM, Neal Becker wrote: > Just trying it out with 1.6: > > np.datetime64('now') > Out[6]: 2011-07-01 00:00:00 > > Well the time now is 07:01am. Is this expected behaviour? > The version of datetime in 1.6 is quite broken. When 1.6 was released, I thought it was proba

Re: [Numpy-discussion] review request: introductory datetime documentation

2011-07-01 Thread Charles R Harris
On Fri, Jul 1, 2011 at 5:01 AM, Neal Becker wrote: > Just trying it out with 1.6: > > np.datetime64('now') > Out[6]: 2011-07-01 00:00:00 > > I get In [1]: datetime64('now') Out[1]: numpy.datetime64('2011-07-01T07:18:35-0600') You need the development branch for trials, Mark has made a lot of f

Re: [Numpy-discussion] broacasting question

2011-07-01 Thread Thomas K Gamble
> On 30.06.2011, at 11:57PM, Thomas K Gamble wrote: > >> np.add(b.reshape(2048,3136) * c, d, out=a[:,:3136]) > >> > >> But to say whether this is really the equivalent result to what IDL > >> does, one would have to study the IDL manual in detail or directly > >> compare the output (e.g. check wha

Re: [Numpy-discussion] broacasting question

2011-07-01 Thread Thomas K Gamble
> > Right, I forgot to point out that there are at least 2 ways to bring the > arrays into compatible shapes (that's the reason broadcasting does not > work here, because numpy only does automatic broadcasting if there is an > unambiguous way to do so). So the IDL arrays being Fortran-ordered is t

Re: [Numpy-discussion] alterNEP - was: missing data discussion round 2

2011-07-01 Thread Matthew Brett
Hi, On Fri, Jul 1, 2011 at 2:36 AM, Keith Goodman wrote: > On Thu, Jun 30, 2011 at 10:51 AM, Nathaniel Smith wrote: >> On Thu, Jun 30, 2011 at 6:31 AM, Matthew Brett >> wrote: >>> In the interest of making the discussion as concrete as possible, here >>> is my draft of an alternative proposal

Re: [Numpy-discussion] review request: introductory datetime documentation

2011-07-01 Thread Neal Becker
Just trying it out with 1.6: np.datetime64('now') Out[6]: 2011-07-01 00:00:00 Well the time now is 07:01am. Is this expected behaviour? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussi