Re: [Numpy-discussion] Numpy 1.3 release date ?

2009-02-03 Thread Scott Sinclair
> 2009/2/4 David Cournapeau : > On Tue, Feb 3, 2009 at 11:49 PM, Pierre GM wrote: >> All, >> When can we expect numpy 1.3 to be released ? > > I think official 2.6 support (with binaries for the platforms where we > support binaries), x64 support and everything which has been done > already would

Re: [Numpy-discussion] numscons/numpy.distutils bug related to MACOSX_DEPLOYMENT_TARGET

2009-02-03 Thread Robert Kern
On Tue, Feb 3, 2009 at 23:22, Brian Granger wrote: >> 1) Trust the environment variable if given and let distutils raise its >> error message (why not raise it ourselves? distutils' error message >> and explanation is already out in THE GOOGLE.) >> >> 2) Otherwise, use the value in the Makefile if

Re: [Numpy-discussion] numscons/numpy.distutils bug related to MACOSX_DEPLOYMENT_TARGET

2009-02-03 Thread Brian Granger
> 1) Trust the environment variable if given and let distutils raise its > error message (why not raise it ourselves? distutils' error message > and explanation is already out in THE GOOGLE.) > > 2) Otherwise, use the value in the Makefile if it's there. > > 3) If it's not even in the Makefile for

Re: [Numpy-discussion] Few minor issues with numscons

2009-02-03 Thread Brian Granger
> The releases are on Pypi for quite some time. I converted the repo to > git and put it on github, but I have not really worked on numscons for > several months now for lack of time ( and because numscons it mostly > "done" and the main limitations of numscons are not fixable without > fixing some

Re: [Numpy-discussion] Numpy 1.3 release date ?

2009-02-03 Thread David Cournapeau
On Tue, Feb 3, 2009 at 11:49 PM, Pierre GM wrote: > All, > When can we expect numpy 1.3 to be released ? Looking at the log from 1.2.x, the main committers were Charles Harris, you and me for (that makes ~ 80 % of the commits) for *numpy*. Then, there is the doc itself, which has seen major work

Re: [Numpy-discussion] Few minor issues with numscons

2009-02-03 Thread David Cournapeau
Hi Brian, On Wed, Feb 4, 2009 at 9:00 AM, Brian Granger wrote: > David, > > I am trying to use numscons to build a project and am running into > some problems: > > Two smaller issues and one show stopper. First, the smaller ones: > > * The web presense of numscons is currently very confusing. T

Re: [Numpy-discussion] array vector elementwise multiplication

2009-02-03 Thread Charles R Harris
On Tue, Feb 3, 2009 at 10:19 AM, Gideon Simpson wrote: > I have an M x N matrix A and two vectors, an M dimensional vector x > and an N dimensional vector y. I would like to be able to do two > things. > > 1. Multiply, elementwise, every column of A by x > > 2. Multiply, elementwise, every row

Re: [Numpy-discussion] numscons/numpy.distutils bug related to MACOSX_DEPLOYMENT_TARGET

2009-02-03 Thread Robert Kern
On Tue, Feb 3, 2009 at 18:53, Brian Granger wrote: >> Hmm, that's still going to break for any custom build that decides to >> build Python with a specific MACOSX_DEPLOYMENT_TARGET. If you're going >> to fix it at all, it should default to the value in the Makefile that >> sysconfig is going to ch

Re: [Numpy-discussion] numscons/numpy.distutils bug related to MACOSX_DEPLOYMENT_TARGET

2009-02-03 Thread Brian Granger
> Hmm, that's still going to break for any custom build that decides to > build Python with a specific MACOSX_DEPLOYMENT_TARGET. If you're going > to fix it at all, it should default to the value in the Makefile that > sysconfig is going to check against. The relevant code to copy is in > sysconfig

Re: [Numpy-discussion] numscons/numpy.distutils bug related to MACOSX_DEPLOYMENT_TARGET

2009-02-03 Thread Robert Kern
On Tue, Feb 3, 2009 at 18:34, Brian Granger wrote: >> What is the fix you are thinking of? > > This is how Cython currently handles this logic. This would have to > be modified to include the additional case of a user setting > MACOSX_DEPLOYMENT_TARGET in their environment, but that logic is > al

Re: [Numpy-discussion] numscons/numpy.distutils bug related to MACOSX_DEPLOYMENT_TARGET

2009-02-03 Thread Brian Granger
> What is the fix you are thinking of? This is how Cython currently handles this logic. This would have to be modified to include the additional case of a user setting MACOSX_DEPLOYMENT_TARGET in their environment, but that logic is already in numpy.distutils.fcompiler.gnu.get_flags_linker_so Th

[Numpy-discussion] reading binary Fortran

2009-02-03 Thread Catherine Moroney
I've noticed a lot of discussion on how to read binary files written out from Fortran, and nobody seems to have mentioned how to modify your Fortran code so it writes out a file that can be read with numpy.fromfile() in a single line. For example, to write out a NLINE x NSMP array of floats in For

Re: [Numpy-discussion] numscons/numpy.distutils bug related to MACOSX_DEPLOYMENT_TARGET

2009-02-03 Thread Robert Kern
On Tue, Feb 3, 2009 at 18:20, Brian Granger wrote: > Robert, > > Thanks. > > Yes, I just saw that this will work. When I fixed this in Cython a > while back this workaround wouldn't work. Would you still consider > this a bug? The logic to fix it is fairly simply. What is the fix you are think

Re: [Numpy-discussion] numscons/numpy.distutils bug related to MACOSX_DEPLOYMENT_TARGET

2009-02-03 Thread Brian Granger
Robert, Thanks. Yes, I just saw that this will work. When I fixed this in Cython a while back this workaround wouldn't work. Would you still consider this a bug? The logic to fix it is fairly simply. Brian On Tue, Feb 3, 2009 at 4:17 PM, Robert Kern wrote: > On Tue, Feb 3, 2009 at 18:12, Br

Re: [Numpy-discussion] numscons/numpy.distutils bug related to MACOSX_DEPLOYMENT_TARGET

2009-02-03 Thread Robert Kern
On Tue, Feb 3, 2009 at 18:12, Brian Granger wrote: > I am trying to use numscons to build a project and have run into a > show stopper. I am using: > > OS X 10.5 > The builtin Python 2.5.2 > > Here is what I see upon running python setup.py scons: > > scons: Reading SConscript files ... > Distuti

[Numpy-discussion] numscons/numpy.distutils bug related to MACOSX_DEPLOYMENT_TARGET

2009-02-03 Thread Brian Granger
I am trying to use numscons to build a project and have run into a show stopper. I am using: OS X 10.5 The builtin Python 2.5.2 Here is what I see upon running python setup.py scons: scons: Reading SConscript files ... DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "

[Numpy-discussion] Few minor issues with numscons

2009-02-03 Thread Brian Granger
David, I am trying to use numscons to build a project and am running into some problems: Two smaller issues and one show stopper. First, the smaller ones: * The web presense of numscons is currently very confusing. There are a couple of locations with info about it, but the most prominent ones

Re: [Numpy-discussion] Operations on masked items

2009-02-03 Thread Ryan May
Pierre GM wrote: > On Feb 3, 2009, at 4:00 PM, Ryan May wrote: >> Well, I guess I hit send too soon. Here's one easy solution >> (consistent with >> what you did for __radd__), change the code for __rmul__ to do: >> >> return multiply(self, other) >> >> instead of: >> >> return multipl

Re: [Numpy-discussion] Operations on masked items

2009-02-03 Thread Pierre GM
On Feb 3, 2009, at 4:00 PM, Ryan May wrote: > > Well, I guess I hit send too soon. Here's one easy solution > (consistent with > what you did for __radd__), change the code for __rmul__ to do: > > return multiply(self, other) > > instead of: > > return multiply(other, self) > > That

Re: [Numpy-discussion] Operations on masked items

2009-02-03 Thread Ryan May
Ryan May wrote: > Pierre, > > I know you did some preliminary work on helping to make sure that doing > operations on masked arrays doesn't change the underlying data. I ran into > the > following today. > > import numpy as np > a = np.ma.array([1,2,3], mask=[False, True, False]) > b = a * 10 >

[Numpy-discussion] Operations on masked items

2009-02-03 Thread Ryan May
Pierre, I know you did some preliminary work on helping to make sure that doing operations on masked arrays doesn't change the underlying data. I ran into the following today. import numpy as np a = np.ma.array([1,2,3], mask=[False, True, False]) b = a * 10 c = 10 * a print b.data # Prints [10 2

Re: [Numpy-discussion] example reading binary Fortran file

2009-02-03 Thread David Froger
the last line was missing : return arrays ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] example reading binary Fortran file

2009-02-03 Thread David Froger
Thanks a lot Fransesc and Neil, yours messages really help me. I'll look at these solutions attentively. Here is what I write recently, but I begin to understand it's effectively not portable... def fread(fileObject,*arrayAttributs): """ Reading in a binary (=unformatted) Fortran file L

Re: [Numpy-discussion] genloadtxt question

2009-02-03 Thread Ryan May
Pierre GM wrote: > On Feb 3, 2009, at 11:24 AM, Ryan May wrote: > >> Pierre, >> >> Should the following work? >> >> import numpy as np >> from StringIO import StringIO >> >> converter = {'date':lambda s: datetime.strptime(s,'%Y-%m-%d %H:%M: >> %SZ')} >> data = np.ndfromtxt(StringIO('2009-02-03 12

[Numpy-discussion] array vector elementwise multiplication

2009-02-03 Thread Gideon Simpson
I have an M x N matrix A and two vectors, an M dimensional vector x and an N dimensional vector y. I would like to be able to do two things. 1. Multiply, elementwise, every column of A by x 2. Multiply, elementwise, every row of A by y. What's the "quick" way to do this in numpy? -gideon

Re: [Numpy-discussion] genloadtxt question

2009-02-03 Thread Pierre GM
On Feb 3, 2009, at 11:24 AM, Ryan May wrote: > Pierre, > > Should the following work? > > import numpy as np > from StringIO import StringIO > > converter = {'date':lambda s: datetime.strptime(s,'%Y-%m-%d %H:%M: > %SZ')} > data = np.ndfromtxt(StringIO('2009-02-03 12:00:00Z,72214.0'), > delimit

[Numpy-discussion] genloadtxt question

2009-02-03 Thread Ryan May
Pierre, Should the following work? import numpy as np from StringIO import StringIO converter = {'date':lambda s: datetime.strptime(s,'%Y-%m-%d %H:%M:%SZ')} data = np.ndfromtxt(StringIO('2009-02-03 12:00:00Z,72214.0'), delimiter=',', names=['date','stid'], dtype=None, converters=converter) Righ

Re: [Numpy-discussion] f2py: VS version on Windows

2009-02-03 Thread Mike Colonno
Thanks to all for clearing this up. I have been bouncing this issue off the folks at Intel and they allege that Intel C++ should be able to do this independent of the version of VS used originally (I am skeptical). I am still getting some MKL-related missing symbol errors that we are cle

[Numpy-discussion] Numpy 1.3 release date ?

2009-02-03 Thread Pierre GM
All, When can we expect numpy 1.3 to be released ? Sincerely, P. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] N-D array interface page is out of date

2009-02-03 Thread Stéfan van der Walt
2009/2/3 Andrew Straw : > Can someone with appropriate permissions fix the page or give me the > appropriate permissions so I can do it? I think even deleting the page > is better than keeping it as-is. Who all has editing access to this page? Is it hosted on scipy.org? Stéfan __

[Numpy-discussion] from_function

2009-02-03 Thread Neal Becker
I've been using something I wrote: coef_from_function (function, delta, size) which does (c++ code): double center = double(size-1)/2; for (int i = 0; i < size; ++i) coef[i] = call (func, double(i - center) * delta); I thought to translate this to np.fromfunction. It seems fromfunction

Re: [Numpy-discussion] example reading binary Fortran file

2009-02-03 Thread Francesc Alted
A Friday 30 January 2009, David Froger escrigué: > ok for f2py! > > > Otherwise, you will have to figure out how your Fortran program > > writes the file. I.e. what padding, metainformation, etc. that are > > used. If you switch Fortran compiler, or even compiler version from > > the same vendor, y

Re: [Numpy-discussion] porting NumPy to Python 3

2009-02-03 Thread Ondrej Certik
Hi James, On Thu, Jan 29, 2009 at 2:11 AM, James Watson wrote: > Hi, > > I am interested in contributing to the port of NumPy to Python 3. Who > I should coordinate effort with? > > I have started at the Python end of the problem (as opposed to > http://www.scipy.org/Python3k), e.g. I have sever

Re: [Numpy-discussion] SVD errors

2009-02-03 Thread Pauli Virtanen
Mon, 02 Feb 2009 18:27:05 -0600, Robert Kern wrote: > On Mon, Feb 2, 2009 at 18:21, wrote: >> Hello list.. I've run into two SVD errors over the last few days. Both >> errors are identical in numpy/scipy. >> >> I've submitted a ticket for the 1st problem (numpy ticket #990). >> Summary is: some b

Re: [Numpy-discussion] N-D array interface page is out of date

2009-02-03 Thread Andrew Straw
Regarding http://numpy.scipy.org/array_interface.shtml : I just noticed that this out of date page is now featuring in recent discussions about the future of Numpy in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-numpy/+bug/309215 Can someone with appropriate permissions fix the page o