Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-28 Thread Mark Wiebe
On Tue, Feb 28, 2012 at 11:03 PM, Fernando Perez wrote: > On Tue, Feb 28, 2012 at 10:46 PM, Travis Oliphant > wrote: > > We already use the NEP process for such decisions. This discussion > came from simply from the *idea* of writing such a NEP. > > > > Nothing has been decided. Only opinions

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-28 Thread Fernando Perez
On Tue, Feb 28, 2012 at 10:46 PM, Travis Oliphant wrote: > We already use the NEP process for such decisions.   This discussion came > from simply from the *idea* of writing such a NEP. > > Nothing has been decided.  Only opinions have been shared that might > influence the NEP.  This is all pre

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-28 Thread Travis Oliphant
We already use the NEP process for such decisions. This discussion came from simply from the *idea* of writing such a NEP. Nothing has been decided. Only opinions have been shared that might influence the NEP. This is all pretty premature, though --- migration to C++ features on a trial br

Re: [Numpy-discussion] Determining the 'viewness' of an array, and flags.owndata confusion

2012-02-28 Thread Val Kalatsky
Viewness is in the eyes of the beholder. You have to use indirect methods to figure it out. Probably the most robust approach is to go up the base chain until you get None. In [71]: c1=np.arange(16) In [72]: c2=c1[::2] In [73]: c4=c2[::2] In [74]: c8=c4[::2] In [75]: id(c8.base)==id(c4) Out[75]: T

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-28 Thread Fernando Perez
On Tue, Feb 28, 2012 at 4:49 PM, Bryan Van de Ven wrote: > Just my own $0.02 regarding this issue: I am in favor of using C++ for > numpy, I think it could confer various benefits. However, I am also in > favor of explicitly deciding and documenting what subset of C++ features > are acceptable for

Re: [Numpy-discussion] Determining the 'viewness' of an array, and flags.owndata confusion

2012-02-28 Thread Jonathan Rocher
Thank you all for your answers. Kurt and I were training new developers on numpy and telling them that - fancy indexing creates a copy - owndata was a good way to know if an array is a view or a copy. It turns out that these were both correct statements but we didn't think that the fancy indexing w

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-28 Thread Bryan Van de Ven
On 2/28/12 4:09 PM, Russell E. Owen wrote: > I can't imagine working in C anymore and doing without exception > handling and namespaces. So I'm sorry to hear that C++ is not being > considered for a numpy rewrite. -- Russell AFAIK C++ is still being considered for numpy in the future, and I think

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-28 Thread Russell E. Owen
In article , David Cournapeau wrote: > On Sat, Feb 18, 2012 at 10:50 PM, Sturla Molden wrote: > > >  > In an ideal world, we would have a better language than C++ that can > > be spit out as > C for portability. > > > > What about a statically typed Python? (That is, not Cython.) We just > >

Re: [Numpy-discussion] Possible roadmap addendum: building better text file readers

2012-02-28 Thread Erin Sheldon
Hi All - I've added the relevant code to my numpy fork here https://github.com/esheldon/numpy The python module and c file are at /numpy/lib/recfile.py and /numpy/lib/src/_recfile.c Access from python is numpy.recfile See below for the doc string for the main class, Recfile. Some example

Re: [Numpy-discussion] Determining the 'viewness' of an array, and flags.owndata confusion

2012-02-28 Thread Nathaniel Smith
On Tue, Feb 28, 2012 at 11:01 PM, Kurt Smith wrote: > For an arbitrary numpy array 'a', what does 'a.flags.owndata' indicate? I think what it really indicates is whether a's destructor should call free() on a's data pointer. > I originally thought that owndata is False iff 'a' is a view.  But >

Re: [Numpy-discussion] Determining the 'viewness' of an array, and flags.owndata confusion

2012-02-28 Thread Robert Kern
On Tue, Feb 28, 2012 at 23:01, Kurt Smith wrote: > For an arbitrary numpy array 'a', what does 'a.flags.owndata' indicate? > > I originally thought that owndata is False iff 'a' is a view.  But > that is incorrect. > > Consider the following: > > In [119]: a = np.zeros((3,3)) > > In [120]: a.flags

Re: [Numpy-discussion] Determining the 'viewness' of an array, and flags.owndata confusion

2012-02-28 Thread Kurt Smith
On Tue, Feb 28, 2012 at 5:12 PM, Larsen, Brian A wrote: > Stack overflow post related to this: > http://stackoverflow.com/questions/9164269/can-you-tell-if-an-array-is-a-view-of-another They recommend testing "a.base". However, in the example I posted, "a.base" is not reliable either. For examp

Re: [Numpy-discussion] Determining the 'viewness' of an array, and flags.owndata confusion

2012-02-28 Thread Larsen, Brian A
Stack overflow post related to this: http://stackoverflow.com/questions/9164269/can-you-tell-if-an-array-is-a-view-of-another On Feb 28, 2012, at 4:01 PM, Kurt Smith wrote: For an arbitrary numpy array 'a', what does 'a.flags.owndata' indicate? I originally thought that owndata is False iff '

[Numpy-discussion] Determining the 'viewness' of an array, and flags.owndata confusion

2012-02-28 Thread Kurt Smith
For an arbitrary numpy array 'a', what does 'a.flags.owndata' indicate? I originally thought that owndata is False iff 'a' is a view. But that is incorrect. Consider the following: In [119]: a = np.zeros((3,3)) In [120]: a.flags.owndata # should be True; zeros() creates and returns a non-view

Re: [Numpy-discussion] Possible roadmap addendum: building better text file readers

2012-02-28 Thread Nathaniel Smith
[Re-adding the list to the To: field, after it got dropped accidentally] On Tue, Feb 28, 2012 at 12:28 AM, Erin Sheldon wrote: > Excerpts from Nathaniel Smith's message of Mon Feb 27 17:33:52 -0500 2012: >> On Mon, Feb 27, 2012 at 6:02 PM, Erin Sheldon wrote: >> > Excerpts from Nathaniel Smith's

Re: [Numpy-discussion] Problem Building Numpy with Python 2.7.1 and OS X 10.7.3

2012-02-28 Thread Ralf Gommers
On Mon, Feb 27, 2012 at 1:47 AM, Patrick Armstrong wrote: > Hi, > > On 2012-02-25, at 5:14 AM, Ralf Gommers wrote: > > Since you're using pip, I assume that gcc-4.2 is llvm-gcc. As a first > step, I suggest using plain gcc and not using pip (so just "python setup.py > install"). Also make sure yo

Re: [Numpy-discussion] Moving to gcc 4.* for win32 installers ?

2012-02-28 Thread Ralf Gommers
On Mon, Feb 6, 2012 at 10:54 PM, David Cournapeau wrote: > On Sat, Feb 4, 2012 at 3:55 PM, Ralf Gommers > wrote: > > > > > > On Wed, Dec 14, 2011 at 6:50 PM, Ralf Gommers < > ralf.gomm...@googlemail.com> > > wrote: > >> > >> > >> > >> On Wed, Dec 14, 2011 at 3:04 PM, David Cournapeau > >> wrote:

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-28 Thread Charles R Harris
On Tue, Feb 28, 2012 at 2:34 PM, Dag Sverre Seljebotn < d.s.seljeb...@astro.uio.no> wrote: > On 02/28/2012 11:05 AM, John Hunter wrote: > > On Sat, Feb 18, 2012 at 5:09 PM, David Cournapeau > > wrote: > > > > > > There are better languages than C++ that has most of

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-28 Thread Dag Sverre Seljebotn
On 02/28/2012 11:05 AM, John Hunter wrote: > On Sat, Feb 18, 2012 at 5:09 PM, David Cournapeau > wrote: > > > There are better languages than C++ that has most of the technical > benefits stated in this discussion (rust and D being the most > "obvious" ones),

Re: [Numpy-discussion] YouTrack License

2012-02-28 Thread Ralf Gommers
On Tue, Feb 28, 2012 at 8:12 PM, Travis Oliphant wrote: > I just received word that NumPy has a license to use TeamCity and > YouTrack for NumPy development. > > YouTrack is a really nice issue tracker: > http://www.jetbrains.com/youtrack/ > > TeamCity is a really nice Continuous Integration syst

Re: [Numpy-discussion] YouTrack License

2012-02-28 Thread Chris Ball
Travis Oliphant gmail.com> writes: > > I just received word that NumPy has a  license to use TeamCity and YouTrack for NumPy development.  > YouTrack is a really nice issue tracker:   http://www.jetbrains.com/youtrack/ > > > TeamCity is a really nice Continuous Integration system:  http:// www

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-28 Thread Charles R Harris
On Tue, Feb 28, 2012 at 12:05 PM, John Hunter wrote: > On Sat, Feb 18, 2012 at 5:09 PM, David Cournapeau wrote: > >> >> There are better languages than C++ that has most of the technical >> >> benefits stated in this discussion (rust and D being the most >> "obvious" ones), but whose usage is unr

[Numpy-discussion] YouTrack License

2012-02-28 Thread Travis Oliphant
I just received word that NumPy has a license to use TeamCity and YouTrack for NumPy development. YouTrack is a really nice issue tracker: http://www.jetbrains.com/youtrack/ TeamCity is a really nice Continuous Integration system: http://www.jetbrains.com/teamcity/ I'm planning to set thi

Re: [Numpy-discussion] Proposed Roadmap Overview

2012-02-28 Thread John Hunter
On Sat, Feb 18, 2012 at 5:09 PM, David Cournapeau wrote: > > There are better languages than C++ that has most of the technical > benefits stated in this discussion (rust and D being the most > "obvious" ones), but whose usage is unrealistic today for various > reasons: knowledge, availability on

Re: [Numpy-discussion] [NumPy-Tickets] [NumPy] #2067: when x is an N-D array, list(x) produces surprising results

2012-02-28 Thread Robert Kern
Off-Trac comments should probably go to numpy-discussion rather than back to numpy-tickets. I'm not sure why it's not read-only, but it should be. On Tue, Feb 28, 2012 at 01:15, Phillip Feldman wrote: > I'd appreciate a pointer to something in the NumPy reference material > that states that a N-d

[Numpy-discussion] Numpy on App Engine

2012-02-28 Thread Tom K .
Congrats, numpy is now available on the Google App Engine: http://googleappengine.blogspot.in/2012/02/announcing-general-availability-of.html ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-dis