[Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Richard D. Moores
If not now, when? Thanks, Dick Moores ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Crosstabulation

2010-07-19 Thread sandric ionut
Hi Friedrich: For land-use a class would be for example forest, other would be orchard etc. For Slope gradient I would have values which 3 and between 3 and 7 etc. So, I will have 2 raster data with, let's say, 3 classes each: forest, orchards and built-up area and for slope gradient: 0-3,

Re: [Numpy-discussion] Complex nan ordering

2010-07-19 Thread Pauli Virtanen
However, nans have been propagated by maximum and minimum since 1.4.0. There was a question, discussed on the list, as to what 'nan' complex to return in the propagation, but it was still a nan complex in your definition of such objects. The final choice was driven by using the first of the

Re: [Numpy-discussion] Complex128

2010-07-19 Thread Pauli Virtanen
Sun, 18 Jul 2010 21:15:15 -0500, Ross Harder wrote: mac os x leopard 10.5.. EPD installed i just don't understand why i get one thing when i ask for another. i can get what i want, but only by not asking for it. Do you get the same behavior also from import numpy as np

Re: [Numpy-discussion] f2py problem with complex inout in subroutine

2010-07-19 Thread Mark Bakker
Thanks for fixing this, Pearu. Complex arrays with intent(inout) don't seem to work either. They compile, but a problem occurs when calling the routine. Did you fix that as well? Here's an example that doesn't work (sorry, I cannot update to svn 8478 on my machine right now): subroutine

Re: [Numpy-discussion] Crosstabulation

2010-07-19 Thread Vincent Schut
On 07/19/2010 09:55 AM, sandric ionut wrote: Hi Friedrich: For land-use a class would be for example forest, other would be orchard etc. For Slope gradient I would have values which 3 and between 3 and 7 etc. So, I will have 2 raster data with, let's say, 3 classes each: forest, orchards

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Renato Fabbri
anyway, svn and tortoise are very useful. do some trial an error. try stuff, its easier than one usually imagine. (tip: checkout the svn address, whatever that should mean to you at the moment) cheers, rf 2010/7/19 David Cournapeau courn...@gmail.com: On Mon, Jul 19, 2010 at 12:35 PM, Richard

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Renato Fabbri
dick, The thing is: 1) get the path to where your python3 is installed (something like c:\Python3) i don't remember that anymore. 2) run that setup with it, like c:\python3\python3 setup.py build 3) read CAREFULLY the output at your console. Specially the last lines. Start looking for an

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Richard D. Moores
On Mon, Jul 19, 2010 at 04:49, Alan G Isaac ais...@american.edu wrote: On 7/19/2010 7:33 AM, Richard D. Moores wrote: 'python3' is not recognized as an internal or external command, operable program or batch file. It's just ``python``. hth, Alan Isaac C:\Python31dir *.exe  Volume in

Re: [Numpy-discussion] numpy 1.5 or 2.0

2010-07-19 Thread Nadav Horesh
Till now I see that numpy2 plays well with PIL, Matplotlib, scipy and maybe some other packages. Should I expect that it might break? Nadav. -Original Message- From: numpy-discussion-boun...@scipy.org on behalf of Pauli Virtanen Sent: Mon 19-Jul-10 10:54 To: Discussion of Numerical

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Matthieu Brucher
Dave, I got: c:\SVNRepository\numpyC:\Python31python setup.py bdist_wininst 'C:\Python31' is not recognized as an internal or external command, operable program or batch file. Or didn't I do exactly what you suggested? python setup.py bdist_wininst Assuming you have a C compiler on your

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Richard D. Moores
On Mon, Jul 19, 2010 at 05:28, Vincent Schut sc...@sarvision.nl wrote: Well, you might want to read up on some beginners guide for python? It's up to you, of course, but usually before starting with numpy (which extends python), it is advised to have at least some basic python

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Richard D. Moores
On Mon, Jul 19, 2010 at 05:53, Matthieu Brucher matthieu.bruc...@gmail.com wrote: Dave, I got: c:\SVNRepository\numpyC:\Python31python setup.py bdist_wininst 'C:\Python31' is not recognized as an internal or external command, operable program or batch file. Or didn't I do exactly what you

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Jean-Luc Menut
Dave, I got: c:\SVNRepository\numpyC:\Python31python setup.py bdist_wininst 'C:\Python31' is not recognized as an internal or external command, operable program or batch file. I shouldn't type C:\Python31python setup.py bdist_wininst. but python setup.py bdist_wininst You might have a look

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Dave
Richard D. Moores rdmoores at gmail.com writes: The commands should therefore be: cd c:\SVNRepository\numpy C:\Python31python setup.py bdist_wininst Dave, I got: c:\SVNRepository\numpyC:\Python31python setup.py bdist_wininst 'C:\Python31' is not recognized as an internal or

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Vincent Schut
On 07/19/2010 02:56 PM, Richard D. Moores wrote: On Mon, Jul 19, 2010 at 05:28, Vincent Schutsc...@sarvision.nl wrote: Well, you might want to read up on some beginners guide for python? It's up to you, of course, but usually before starting with numpy (which extends python), it is advised

Re: [Numpy-discussion] Python 2.7 MSI installer for NumPy

2010-07-19 Thread Ralf Gommers
On Mon, Jul 19, 2010 at 6:06 AM, Christoph Gohlke cgoh...@uci.edu wrote: On 7/18/2010 2:20 PM, David Cournapeau wrote: On Sun, Jul 18, 2010 at 8:34 PM, Peter numpy-discuss...@maubp.freeserve.co.uk wrote: On Sun, Jul 18, 2010 at 6:02 PM, cool-RRcool...@cool-rr.com wrote: Hello. I'd

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Vincent Schut
On 07/19/2010 03:34 PM, Richard D. Moores wrote: On Mon, Jul 19, 2010 at 06:15, Vincent Schutsc...@sarvision.nl wrote: On 07/19/2010 02:56 PM, Richard D. Moores wrote: On Mon, Jul 19, 2010 at 05:28, Vincent Schutsc...@sarvision.nlwrote: Well, you might want to read up on some

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Richard D. Moores
On Mon, Jul 19, 2010 at 06:56, Vincent Schut sc...@sarvision.nl wrote: On 07/19/2010 03:34 PM, Richard D. Moores wrote: On Mon, Jul 19, 2010 at 06:15, Vincent Schutsc...@sarvision.nl  wrote: several years ago I was using Ulipad, an IDE for Python. It was under active development and

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Dave
Richard D. Moores rdmoores at gmail.com writes: On Mon, Jul 19, 2010 at 06:03, Dave dave.hirschfeld at gmail.com wrote: My bad - typo. The command to build numpy should have been: C:\Python31\python setup.py bdist_wininst I tried that. See the attached. i.e. the full path and

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Robin
On Mon, Jul 19, 2010 at 1:53 PM, Matthieu Brucher matthieu.bruc...@gmail.com wrote: I'm afraid that if you don't know if you have a compiler, you don't have one. This also means you will not be able to compile Numpy, as the official compiler is no longer available. Is this the VS 2008 Express

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Richard D. Moores
On Mon, Jul 19, 2010 at 07:38, Dave dave.hirschf...@gmail.com wrote: When you say you do have one I'm assuming that when you entered gcc at the command line you got the gcc: no input files error message back. In this case we need to tell python to use the gcc compilers. No, I don't have gcc.

Re: [Numpy-discussion] missing string formatting functionality?

2010-07-19 Thread Benjamin Root
On Thu, Jul 15, 2010 at 7:53 AM, Neal Becker ndbeck...@gmail.com wrote: It looks like np.savetxt is pretty flexible, accepting fmt, and delimiter args. But to format into a string, we have array_repr and array_str, which are not flexible. Of course, one can use np.savetxt with python

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Richard D. Moores
On Mon, Jul 19, 2010 at 07:48, Robin robi...@gmail.com wrote: On Mon, Jul 19, 2010 at 1:53 PM, Matthieu Brucher matthieu.bruc...@gmail.com wrote: I'm afraid that if you don't know if you have a compiler, you don't have one. This also means you will not be able to compile Numpy, as the

Re: [Numpy-discussion] Numpy 1.4.1 fails to build on (Debian) alpha and powepc

2010-07-19 Thread David Cournapeau
On Sun, Jul 18, 2010 at 12:53 PM, Sandro Tosi mo...@debian.org wrote: Hello, I finally found the time to update numpy in Debian. But, there is a problem... As you probably know, we support several architectures and we need to have any package available on each of them. After the upload I

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Richard D. Moores
On Mon, Jul 19, 2010 at 09:00, Robert Kern robert.k...@gmail.com wrote: On Mon, Jul 19, 2010 at 11:53, Richard D. Moores rdmoo...@gmail.com wrote: On Mon, Jul 19, 2010 at 07:48, Robin robi...@gmail.com wrote: On Mon, Jul 19, 2010 at 1:53 PM, Matthieu Brucher matthieu.bruc...@gmail.com wrote:

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread Robert Kern
On Mon, Jul 19, 2010 at 14:17, Richard D. Moores rdmoo...@gmail.com wrote: On Mon, Jul 19, 2010 at 09:00, Robert Kern robert.k...@gmail.com wrote: On Mon, Jul 19, 2010 at 11:53, Richard D. Moores rdmoo...@gmail.com wrote: On Mon, Jul 19, 2010 at 07:48, Robin robi...@gmail.com wrote: On Mon,

Re: [Numpy-discussion] numpy for Python 3?

2010-07-19 Thread David Cournapeau
On Mon, Jul 19, 2010 at 8:31 PM, Robert Kern robert.k...@gmail.com wrote: On Mon, Jul 19, 2010 at 14:17, Richard D. Moores rdmoo...@gmail.com wrote: On Mon, Jul 19, 2010 at 09:00, Robert Kern robert.k...@gmail.com wrote: On Mon, Jul 19, 2010 at 11:53, Richard D. Moores rdmoo...@gmail.com wrote:

Re: [Numpy-discussion] Numpy 1.4.1 fails to build on (Debian) alpha and powepc

2010-07-19 Thread Sandro Tosi
Hi David, thanks for your reply! On Mon, Jul 19, 2010 at 20:10, David Cournapeau courn...@gmail.com wrote: On Sun, Jul 18, 2010 at 12:53 PM, Sandro Tosi mo...@debian.org wrote: Hello, I finally found the time to update numpy in Debian. But, there is a problem... As you probably know, we

Re: [Numpy-discussion] Crosstabulation

2010-07-19 Thread eat
Ionut Sandric sandricionut at yahoo.com writes: Thank you Zack: By raster data I mean classified slope gradient (derived from a dem), landuse-landcover, lithology etc. A crosstabulation analysis will give me a table with the common areas for each class from each raster and this will go

Re: [Numpy-discussion] Crosstabulation

2010-07-19 Thread Friedrich Romstedt
2010/7/19 sandric ionut sandricio...@yahoo.com: For land-use a class would be for example forest, other would be orchard etc. For Slope gradient I would have values which 3 and between 3 and 7 etc. So, I will have 2 raster data with, let's say, 3 classes each: forest, orchards and built-up

[Numpy-discussion] numpy records in C

2010-07-19 Thread Caius Howcroft
Hi all I'm playing with writing some C code to speed up an inner loop in my python code. This loop operates on a numpy record, e.g. soemthing like this: a = numpy.zeros((10,), dtype=[(myfvalue ,float), (myc, int8), (anotheri, uint64)]) which is then passed into c code like so: myCFunc(a, blah)

Re: [Numpy-discussion] numpy Trac emails

2010-07-19 Thread Vincent Davis
On Sun, Jul 18, 2010 at 10:06 AM, Pauli Virtanen p...@iki.fi wrote: Sun, 18 Jul 2010 23:59:24 +0800, Ralf Gommers wrote: Scipy Trac seems to work very well now, I get notification emails for comments on tickets etc. For numpy Trac, nothing right now. Can this be fixed? I do think that the

Re: [Numpy-discussion] numpy Trac emails

2010-07-19 Thread Charles R Harris
On Sun, Jul 18, 2010 at 9:59 AM, Ralf Gommers ralf.gomm...@googlemail.comwrote: Scipy Trac seems to work very well now, I get notification emails for comments on tickets etc. For numpy Trac, nothing right now. Can this be fixed? I have a different problem, scipy trac sends all my notices to

Re: [Numpy-discussion] numpy Trac emails

2010-07-19 Thread Ralf Gommers
On Tue, Jul 20, 2010 at 6:55 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Jul 18, 2010 at 9:59 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: Scipy Trac seems to work very well now, I get notification emails for comments on tickets etc. For numpy Trac, nothing right

[Numpy-discussion] comparing floating point numbers

2010-07-19 Thread Ondrej Certik
Hi, I was always using something like abs(x-y) eps or (abs(x-y) eps).all() but today I needed to also make sure this works for larger numbers, where I need to compare relative errors, so I found this: http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm and wrote

Re: [Numpy-discussion] comparing floating point numbers

2010-07-19 Thread Keith Goodman
On Mon, Jul 19, 2010 at 6:31 PM, Ondrej Certik ond...@certik.cz wrote: Hi, I was always using something like abs(x-y) eps or (abs(x-y) eps).all() but today I needed to also make sure this works for larger numbers, where I need to compare relative errors, so I found this:

[Numpy-discussion] lstsq functionality

2010-07-19 Thread Charles R Harris
Hi All, I'm thinking about adding some functionality to lstsq because I find myself doing the same fixes over and over. List follows. 1. Add weights so data points can be weighted. 2. Use column scaling so condition numbers make more sense. 3. Compute covariance approximation?

Re: [Numpy-discussion] lstsq functionality

2010-07-19 Thread Joshua Holbrook
On Mon, Jul 19, 2010 at 5:50 PM, Charles R Harris charlesr.har...@gmail.com wrote: Hi All, I'm thinking about adding some functionality to lstsq because I find myself doing the same fixes over and over. List follows. Add weights so data points can be weighted. Use column scaling so

Re: [Numpy-discussion] lstsq functionality

2010-07-19 Thread Keith Goodman
On Mon, Jul 19, 2010 at 6:53 PM, Joshua Holbrook josh.holbr...@gmail.com wrote: On Mon, Jul 19, 2010 at 5:50 PM, Charles R Harris charlesr.har...@gmail.com wrote: Hi All, I'm thinking about adding some functionality to lstsq because I find myself doing the same fixes over and over. List

Re: [Numpy-discussion] lstsq functionality

2010-07-19 Thread Charles R Harris
On Mon, Jul 19, 2010 at 9:02 PM, Keith Goodman kwgood...@gmail.com wrote: On Mon, Jul 19, 2010 at 6:53 PM, Joshua Holbrook josh.holbr...@gmail.com wrote: On Mon, Jul 19, 2010 at 5:50 PM, Charles R Harris charlesr.har...@gmail.com wrote: Hi All, I'm thinking about adding some

Re: [Numpy-discussion] lstsq functionality

2010-07-19 Thread Charles R Harris
On Mon, Jul 19, 2010 at 9:02 PM, Keith Goodman kwgood...@gmail.com wrote: On Mon, Jul 19, 2010 at 6:53 PM, Joshua Holbrook josh.holbr...@gmail.com wrote: On Mon, Jul 19, 2010 at 5:50 PM, Charles R Harris charlesr.har...@gmail.com wrote: Hi All, I'm thinking about adding some

Re: [Numpy-discussion] lstsq functionality

2010-07-19 Thread Keith Goodman
On Mon, Jul 19, 2010 at 8:27 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Mon, Jul 19, 2010 at 9:02 PM, Keith Goodman kwgood...@gmail.com wrote: On Mon, Jul 19, 2010 at 6:53 PM, Joshua Holbrook josh.holbr...@gmail.com wrote: On Mon, Jul 19, 2010 at 5:50 PM, Charles R Harris

Re: [Numpy-discussion] lstsq functionality

2010-07-19 Thread Charles R Harris
On Mon, Jul 19, 2010 at 9:40 PM, Keith Goodman kwgood...@gmail.com wrote: On Mon, Jul 19, 2010 at 8:27 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Mon, Jul 19, 2010 at 9:02 PM, Keith Goodman kwgood...@gmail.com wrote: On Mon, Jul 19, 2010 at 6:53 PM, Joshua Holbrook