[Numpy-discussion] OS-X binary name...

2009-05-05 Thread Christopher Barker
Hi all, The binary for OS-X on sourceforge is called: numpy-1.3.0-py2.5-macosx10.5.dmg However, as far as I can tell, it works just fine on OS-X 10.4, and maybe even 10.3.9. Perhaps a re-naming is in order? But to what? I'd say: numpy-1.3.0-py2.5-macosx10.4.dmg but would folks think that it

Re: [Numpy-discussion] How to convert a list into a structured array?

2009-05-05 Thread Wei Su
  Hi, Stephen:   This is fantastic. I shall read your codes carefully next week. (I am taking the rest of the week off for vacation.) Hopefully I am not so dumb that I need to ask again.   Regards,   Wei Su --- On Wed, 5/6/09, Stephen Simmons wrote: From: Stephen Simmons Subject: Re: [Numpy-

Re: [Numpy-discussion] How to convert a list into a structured array?

2009-05-05 Thread Stephen Simmons
Wei Su wrote: Hi, Francesc: Thanks a lot for offering me help. My code is really simple as of now. ** from pyodbc import * from rpy import * cnxn = connect(/'DRIVER={SQL Server};SERVER=srdata01\\sql2k5;DATAB

Re: [Numpy-discussion] array membership test?

2009-05-05 Thread josef . pktd
On Tue, May 5, 2009 at 10:37 PM, Mark Wendell wrote: > Is there a numpy equivalent of python's membership test (eg,  "5 in > [1,3,4,5]" returns True)? I'd like a quick way to test if a given > number is in an array, without stepping through the elements > individually. I realize this can be tricky

[Numpy-discussion] array membership test?

2009-05-05 Thread Mark Wendell
Is there a numpy equivalent of python's membership test (eg, "5 in [1,3,4,5]" returns True)? I'd like a quick way to test if a given number is in an array, without stepping through the elements individually. I realize this can be tricky with floats, but if there is such a thing for ints, that woul

Re: [Numpy-discussion] [review] py3k_bootstrap branch

2009-05-05 Thread David Cournapeau
On Wed, May 6, 2009 at 3:57 AM, Darren Dale wrote: > > There is a lot of interest in a 3to2 tool, and I have read speculation > (http://sayspy.blogspot.com/2009/04/pycon-2009-recap-best-pycon-ever.html) > that going from 3 to 2 should be easier than the other way around. Maybe it > will be worth

Re: [Numpy-discussion] cannot build numpy from trunk

2009-05-05 Thread David Cournapeau
On Wed, May 6, 2009 at 12:50 AM, Nils Wagner wrote: > ... > In file included from > numpy/core/src/multiarray/ctors.c:16, >                  from > numpy/core/src/multiarray/multiarraymodule_onefile.c:13: > numpy/core/src/multiarray/ctors.h: At top level: > numpy/core/src/multiarray/ctors.h:68: wa

[Numpy-discussion] difficult optimization problem

2009-05-05 Thread Mathew Yeates
Hi I'm trying to solve an optimization problem where the search domain is limited. Suppose I want to minimize the function f(x,y) but f(x,y) is only valid over a subset (unknown without calling f) of (x,y)? I tried looking at OpenOpt but ... kind of unusable without some documentation. Thanks

Re: [Numpy-discussion] error building numpy: no file refecount.c

2009-05-05 Thread David Cournapeau
On Wed, May 6, 2009 at 1:48 AM, dmitrey wrote: > Hi all, > I've got the error during building numpy from latest svn snapshot - > any ideas? The problem should be fixed now, David ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.

Re: [Numpy-discussion] error building numpy: no file refecount.c

2009-05-05 Thread David Cournapeau
On Wed, May 6, 2009 at 2:32 AM, Neil Martinsen-Burrell wrote: > While understanding that making sure the trunk builds on many platforms > is a problem, I think that numpy could do better at keeping the trunk > buildable and doing disruptive things on long-lived feature branches > that could then

Re: [Numpy-discussion] How to convert a list into a structured array?

2009-05-05 Thread Wei Su
  Hi, Francesc:   Thanks a lot for offering me help. My code is really simple as of now.   ** from pyodbc import * from rpy import * cnxn = connect('DRIVER={SQL Server};SERVER=srdata01\\sql2k5;DATABASE=Qai;UID=;PWD=')

Re: [Numpy-discussion] error building numpy: no file refecount.c

2009-05-05 Thread Stéfan van der Walt
2009/5/5 Neil Martinsen-Burrell : > While understanding that making sure the trunk builds on many platforms > is a problem, I think that numpy could do better at keeping the trunk > buildable and doing disruptive things on long-lived feature branches > that could then be merged. David frequently s

Re: [Numpy-discussion] How to download data directly from SQL into NumPy as a record array or structured array.

2009-05-05 Thread Pierre GM
On May 5, 2009, at 2:42 PM, Wei Su wrote: > > Hi, Everyone: > > This is what I need to do everyday. Now I have to first save data > as .csv file and the use csv2rec() to read the data as a record > array. Anybody can give me some advice on how to directly get the > data as record arrays? It

Re: [Numpy-discussion] [review] py3k_bootstrap branch

2009-05-05 Thread Darren Dale
On Tue, May 5, 2009 at 11:50 AM, David Cournapeau wrote: > On Wed, May 6, 2009 at 12:26 AM, Bruce Southey wrote: > > David Cournapeau wrote: > >> Hi, > >> > >> I spent some more time on making numpy.distutils runnable under python > >> 3. I finally made up to the point where it breaks at C code >

Re: [Numpy-discussion] cannot build numpy from trunk

2009-05-05 Thread Nils Wagner
On Tue, 5 May 2009 12:44:31 -0600 Charles R Harris wrote: > On Tue, May 5, 2009 at 10:12 AM, Nils Wagner > wrote: > >> On Tue, 5 May 2009 10:04:11 -0600 >> Charles R Harris wrote: >> > On Tue, May 5, 2009 at 9:50 AM, Nils Wagner >> >wrote: >> > >> >> ... >> >> In file included from >> >> nump

Re: [Numpy-discussion] cannot build numpy from trunk

2009-05-05 Thread Charles R Harris
On Tue, May 5, 2009 at 10:12 AM, Nils Wagner wrote: > On Tue, 5 May 2009 10:04:11 -0600 > Charles R Harris wrote: > > On Tue, May 5, 2009 at 9:50 AM, Nils Wagner > >wrote: > > > >> ... > >> In file included from > >> numpy/core/src/multiarray/ctors.c:16, > >> from > >> numpy/cor

[Numpy-discussion] How to download data directly from SQL into NumPy as a record array or structured array.

2009-05-05 Thread Wei Su
  Hi, Everyone:   This is what I need to do everyday. Now I have to first save data as .csv file and the use csv2rec() to read the data as a record array. Anybody can give me some advice on how to directly get the data as record arrays? It will save me tons of time.   Thanks in advance.   Wei Su

Re: [Numpy-discussion] error building numpy: no file refecount.c

2009-05-05 Thread Pauli Virtanen
Tue, 05 May 2009 12:32:09 -0500, Neil Martinsen-Burrell wrote: [clip] > While understanding that making sure the trunk builds on many platforms > is a problem, I think that numpy could do better at keeping the trunk > buildable and doing disruptive things on long-lived feature branches > that could

Re: [Numpy-discussion] error building numpy: no file refecount.c

2009-05-05 Thread Neil Martinsen-Burrell
On 2009-05-05 12:12 , Charles R Harris wrote: > > > On Tue, May 5, 2009 at 11:08 AM, Charles R Harris > mailto:charlesr.har...@gmail.com>> wrote: > > > > On Tue, May 5, 2009 at 10:48 AM, dmitrey > wrote: > > Hi all, > I've got the error dur

Re: [Numpy-discussion] error building numpy: no file refecount.c

2009-05-05 Thread Charles R Harris
On Tue, May 5, 2009 at 11:08 AM, Charles R Harris wrote: > > > On Tue, May 5, 2009 at 10:48 AM, dmitrey wrote: > >> Hi all, >> I've got the error during building numpy from latest svn snapshot - >> any ideas? >> D. >> > > I would guess it is a consequence of David's ongoing breakup of the src > f

Re: [Numpy-discussion] error building numpy: no file refecount.c

2009-05-05 Thread Charles R Harris
On Tue, May 5, 2009 at 10:48 AM, dmitrey wrote: > Hi all, > I've got the error during building numpy from latest svn snapshot - > any ideas? > D. > I would guess it is a consequence of David's ongoing breakup of the src files. Did you try the usual delete of the build directory? Chuck _

[Numpy-discussion] error building numpy: no file refecount.c

2009-05-05 Thread dmitrey
Hi all, I've got the error during building numpy from latest svn snapshot - any ideas? D. ... executing numpy/core/code_generators/generate_numpy_api.py adding 'build/src.linux-x86_64-2.6/numpy/core/include/numpy/ __multiarray_api.h' to sources. numpy.core - nothing done with h_files = ['build/s

Re: [Numpy-discussion] Structured array with no fields - possible?

2009-05-05 Thread Matthew Brett
Hi, >> I'm afraid what I need is some way of representing the fact that I >> have read, from matlab, a structure with no fields (and therefore no >> data) that can be - say - shape (10,2) - or any other. > > how about: >  >>> a = np.empty(size, dtype=np.object) >  >>> >  >>> a > array([[None, None

Re: [Numpy-discussion] cannot build numpy from trunk

2009-05-05 Thread Nils Wagner
On Tue, 5 May 2009 10:04:11 -0600 Charles R Harris wrote: > On Tue, May 5, 2009 at 9:50 AM, Nils Wagner >wrote: > >> ... >> In file included from >> numpy/core/src/multiarray/ctors.c:16, >> from >> numpy/core/src/multiarray/multiarraymodule_onefile.c:13: >> numpy/core/src/mult

Re: [Numpy-discussion] cannot build numpy from trunk

2009-05-05 Thread Charles R Harris
On Tue, May 5, 2009 at 9:50 AM, Nils Wagner wrote: > ... > In file included from > numpy/core/src/multiarray/ctors.c:16, > from > numpy/core/src/multiarray/multiarraymodule_onefile.c:13: > numpy/core/src/multiarray/ctors.h: At top level: > numpy/core/src/multiarray/ctors.h:68: war

Re: [Numpy-discussion] [review] py3k_bootstrap branch

2009-05-05 Thread David Cournapeau
On Wed, May 6, 2009 at 12:26 AM, Bruce Southey wrote: > David Cournapeau wrote: >> Hi, >> >> I spent some more time on making numpy.distutils runnable under python >> 3. I finally made up to the point where it breaks at C code >> compilation, so we can start working on the hard part. The branch is

[Numpy-discussion] cannot build numpy from trunk

2009-05-05 Thread Nils Wagner
... In file included from numpy/core/src/multiarray/ctors.c:16, from numpy/core/src/multiarray/multiarraymodule_onefile.c:13: numpy/core/src/multiarray/ctors.h: At top level: numpy/core/src/multiarray/ctors.h:68: warning: conflicting types for ‘byte_swap_vector’ numpy/core/src/

Re: [Numpy-discussion] [review] py3k_bootstrap branch

2009-05-05 Thread Bruce Southey
David Cournapeau wrote: > Hi, > > I spent some more time on making numpy.distutils runnable under python > 3. I finally made up to the point where it breaks at C code > compilation, so we can start working on the hard part. The branch is > there for review > > http://github.com/cournape/numpy/commi

Re: [Numpy-discussion] linalg.svd not working?

2009-05-05 Thread Charles R Harris
On Tue, May 5, 2009 at 8:36 AM, Muhammad Alkarouri wrote: > > Hi everyone, > > I have installed numpy 1.3.0 on Python 2.5.1 in an x86_64 machine, and it > hangs when I do a numpy.test(verbose=10) on > test_pinv (test_defmatrix.TestProperties) ... > which I believe hangs on a call to numpy.linalg.s

Re: [Numpy-discussion] Structured array with no fields - possible?

2009-05-05 Thread Christopher Barker
Matthew Brett wrote: > I'm afraid what I need is some way of representing the fact that I > have read, from matlab, a structure with no fields (and therefore no > data) that can be - say - shape (10,2) - or any other. how about: >>> a = np.empty(size, dtype=np.object) >>> >>> a array([[None, No

[Numpy-discussion] linalg.svd not working?

2009-05-05 Thread Muhammad Alkarouri
Hi everyone, I have installed numpy 1.3.0 on Python 2.5.1 in an x86_64 machine, and it hangs when I do a numpy.test(verbose=10) on test_pinv (test_defmatrix.TestProperties) ... which I believe hangs on a call to numpy.linalg.svd. Can you please help me with this problem? The installation and c

Re: [Numpy-discussion] efficient 3d histogram creation

2009-05-05 Thread David Huard
On Mon, May 4, 2009 at 4:18 PM, wrote: > On Mon, May 4, 2009 at 4:00 PM, Chris Colbert wrote: > > i'll take a look at them over the next few days and see what i can hack > out. > > > > Chris > > > > On Mon, May 4, 2009 at 3:18 PM, David Huard > wrote: > >> > >> > >> On Mon, May 4, 2009 at 7:00

Re: [Numpy-discussion] numpy docstrings

2009-05-05 Thread Robert Kern
On Tue, May 5, 2009 at 05:56, Timmie wrote: > Hello, > is it possible to add sections to the allowed sections in the numpy docstring > standard? > > What to think of a section like: > > Todo > I prefer to keep such things in comments rather than docstrings, myself. -- Robert Kern "I have

[Numpy-discussion] numpy docstrings

2009-05-05 Thread Timmie
Hello, is it possible to add sections to the allowed sections in the numpy docstring standard? What to think of a section like: Todo Regards, Timmie ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listin

[Numpy-discussion] [review] py3k_bootstrap branch

2009-05-05 Thread David Cournapeau
Hi, I spent some more time on making numpy.distutils runnable under python 3. I finally made up to the point where it breaks at C code compilation, so we can start working on the hard part. The branch is there for review http://github.com/cournape/numpy/commits/py3k_bootstrap The code is quite u

Re: [Numpy-discussion] How to convert a list into a structured array?

2009-05-05 Thread Francesc Alted
Welcome Wei! A Monday 04 May 2009, Wei Su escrigué: > Hi,All: >   > My first post! I am very excited to find out structured array (record > array) in Python. Since I do data manipulation every day, this is > truly great. However, I typically download data using pyodbc, the > default output is a bi