[Numpy-discussion] Numpy documentation: status and distribution for 1.3.0

2009-03-09 Thread David Cournapeau
Hi, For the upcoming 1.3.0 release, I would like to distribute the (built) documentation in some way. But first, I need to be able to build it :) What are the exact requirements to build the documentation ? Is sphinx 0.5 enough ? I can't manage to build it on either mac os x or linux: ... dumping

[Numpy-discussion] why numpy.round get a different result from python round function?

2009-03-09 Thread shuwj5...@163.com
hi, I read the doc for numpy about round function: - For values exactly halfway between rounded decimal values, Numpy rounds to the nearest even value. Thus 1.5 and 2.5 round to 2.0, -0.5 and 0.5 round to 0.0, etc. Results may also be surprising due to the inexact representation of decimal fr

Re: [Numpy-discussion] sign, signbit and nans once again.

2009-03-09 Thread Robert Kern
On Mon, Mar 9, 2009 at 22:31, Charles R Harris wrote: > I want to get this settled for the 1.3 release. My thoughts are: > > signbit returns the signbit whether or not the number is a nan. > sign returns nan for nans. > > Copysign is currently unimplemented. I'm thinking of adding it, but making >

Re: [Numpy-discussion] Another question on reading from binary FORTRAN file

2009-03-09 Thread Michael Gilbert
On Mon, 9 Mar 2009 18:21:45 -0400 "Michael S. Gilbert" wrote: > On Mon, 9 Mar 2009 21:45:42 +0100, Mark Bakker wrote: > > > Hello - > > > > I tried to figure this out from the list, but haven't succeeded yet. > > > > I have a simple FORTRAN binary file. > > It contains: > > 1 integer > > 1 floa

[Numpy-discussion] sign, signbit and nans once again.

2009-03-09 Thread Charles R Harris
I want to get this settled for the 1.3 release. My thoughts are: - signbit returns the signbit whether or not the number is a nan. - sign returns nan for nans. Copysign is currently unimplemented. I'm thinking of adding it, but making it return nans when copying the sign of a nan. This isn

Re: [Numpy-discussion] ANN: python for scientific computing at SIAM CSE 09

2009-03-09 Thread Fernando Perez
Hi folks, On Wed, Mar 4, 2009 at 6:51 AM, Fernando Perez wrote: > Hi all, > > sorry for the spam, but in case any of you are coming to the SIAM > Conference on Computational Science and Engineering (CSE09) in Miami: > > http://www.siam.org/meetings/cse09/ A little trip report: http://fdoperez.b

Re: [Numpy-discussion] Another question on reading from binary FORTRAN file

2009-03-09 Thread Christopher Barker
> On Mon, 9 Mar 2009 21:45:42 +0100, Mark Bakker wrote: >> I tried to figure this out from the list, but haven't succeeded yet. >> >> I have a simple FORTRAN binary file. >> It contains: >> 1 integer >> 1 float >> 1 array with 16 numbers (float) >> >> How do I read these into Python? there was a l

Re: [Numpy-discussion] Another question on reading from binary FORTRAN file

2009-03-09 Thread Michael S. Gilbert
On Mon, 9 Mar 2009 21:45:42 +0100, Mark Bakker wrote: > Hello - > > I tried to figure this out from the list, but haven't succeeded yet. > > I have a simple FORTRAN binary file. > It contains: > 1 integer > 1 float > 1 array with 16 numbers (float) > > How do I read these into Python? I figure

Re: [Numpy-discussion] suggestion for generalizing numpy functions

2009-03-09 Thread Travis E. Oliphant
Darren Dale wrote: > On Mon, Mar 9, 2009 at 9:50 AM, Darren Dale > wrote: > > I spent some time over the weekend fixing a few bugs in numpy that > were exposed when attempting to use ufuncs with ndarray > subclasses. It got me thinking that, with relatively l

Re: [Numpy-discussion] suggestion for generalizing numpy functions

2009-03-09 Thread Darren Dale
On Mon, Mar 9, 2009 at 9:50 AM, Darren Dale wrote: > I spent some time over the weekend fixing a few bugs in numpy that were > exposed when attempting to use ufuncs with ndarray subclasses. It got me > thinking that, with relatively little work, numpy's functions could be made > to be more genera

[Numpy-discussion] Another question on reading from binary FORTRAN file

2009-03-09 Thread Mark Bakker
Hello - I tried to figure this out from the list, but haven't succeeded yet. I have a simple FORTRAN binary file. It contains: 1 integer 1 float 1 array with 16 numbers (float) How do I read these into Python? Thanks, Mark ___ Numpy-discussion mailing

Re: [Numpy-discussion] ImportError: ccompiler

2009-03-09 Thread David Cournapeau
On Tue, Mar 10, 2009 at 5:20 AM, Ravi wrote: > > As far as I know, a scipy 0.7.0 binary is not available for python 2.6. Yes, you're right. To build scipy, we need numpy, though :) The good news is that we worked on making sure scipy 0.7 moistly works with python 2.6, using numpy svn. > If a >

Re: [Numpy-discussion] ImportError: ccompiler

2009-03-09 Thread Ravi
On Monday 09 March 2009 15:38:24 David Cournapeau wrote: > > If numpy 1.3.0 is available April 1, will compatible versions of scipy > > binaries also be available then? In other words, if numpy 1.3.0 is > > available for Python 2.6 on Windows XP on April 1, will a scipy 0.7.x > > binary that works

Re: [Numpy-discussion] Buildbot issues

2009-03-09 Thread Charles R Harris
On Mon, Mar 9, 2009 at 1:35 PM, Pauli Virtanen wrote: > Hi, > > There seem to be some problems with the buildbot: > > - It's not building on new commits automatically. > > IIRC this could be fixed by removing some (all?) of buildmaster's cache > files, and/or switching to PersistentSVNPoller. >

Re: [Numpy-discussion] ImportError: ccompiler

2009-03-09 Thread Stéfan van der Walt
Hi Ravi 2009/3/9 Ravi : > If numpy 1.3.0 is available April 1, will compatible versions of scipy > binaries also be available then? In other words, if numpy 1.3.0 is available > for Python 2.6 on Windows XP on April 1, will a scipy 0.7.x binary that works > on the same platform be available? We m

Re: [Numpy-discussion] ImportError: ccompiler

2009-03-09 Thread David Cournapeau
On Tue, Mar 10, 2009 at 4:34 AM, Ravi wrote: > If numpy 1.3.0 is available April 1, will compatible versions of scipy > binaries also be available then? In other words, if numpy 1.3.0 is available > for Python 2.6 on Windows XP on April 1, will a scipy 0.7.x binary that works > on the same platfo

[Numpy-discussion] Buildbot issues

2009-03-09 Thread Pauli Virtanen
Hi, There seem to be some problems with the buildbot: - It's not building on new commits automatically. IIRC this could be fixed by removing some (all?) of buildmaster's cache files, and/or switching to PersistentSVNPoller. - The buildmaster apparently has the old 'scipy.org' SVN url that d

Re: [Numpy-discussion] ImportError: ccompiler

2009-03-09 Thread Ravi
Hi David, On Monday 09 March 2009 14:21:32 David Cournapeau wrote: > First, the shortest path to numpy, specially on windows, is to use the > binary installer. We don't have yet a python 2.6 installer, but the > upcoming numpy 1.3 will have one (numpy 1.3.0 is scheduled for April > 1st). If numpy

Re: [Numpy-discussion] ImportError: ccompiler

2009-03-09 Thread Julius Schlüter
Hi David, Thanks very much! - Jules > > But again, if you can wait for a few weeks, you will be better served > with the binary installer, > > cheers, > > David > ___ > Numpy-discussion mailing list > Numpy-discussion@scipy.org > http://mail.scipy.org/m

Re: [Numpy-discussion] ImportError: ccompiler

2009-03-09 Thread David Cournapeau
On Tue, Mar 10, 2009 at 3:01 AM, Julius Schlüter <1...@gmx.net> wrote: > Hi, > > I'm a Newbie, trying to compile Numpy on Vista with Python 2.6, > following this guide: > http://code.google.com/p/pyamg/wiki/CompilingOnWinXP First, the shortest path to numpy, specially on windows, is to use the bin

[Numpy-discussion] ImportError: ccompiler

2009-03-09 Thread Julius Schlüter
Hi, I'm a Newbie, trying to compile Numpy on Vista with Python 2.6, following this guide: http://code.google.com/p/pyamg/wiki/CompilingOnWinXP It worked one time. Now that I've updated Numpy to the latest subversion and tried a second time, I get this error: C:\Users\...>python C:\Python26\Lib

[Numpy-discussion] PyCon, anyone?

2009-03-09 Thread Christopher Barker
Hey folks, I'm trying to get an idea of how many folks from the numpy/scipy/mpl community will be at PyCon this year. If enough of us, maybe a sprint is in order, but in any case, it might be nice to get together. Please send me a note off-list (to keep the clutter down) if you are going. I ma

[Numpy-discussion] Array with different types

2009-03-09 Thread p0707
Hi! How can I store such arrays: A 1 2.3 1.2 3 d 1.2 B 4 2.3 5.2 3 c 1.2 A 1 2.3 ? 3 e 1.2 using NumPy with support for basic functions: sum, max, min. Is it possible? If not, how I can do this in effective way? Thanks for help Peter ___ Numpy-disc

[Numpy-discussion] NotImplemented string in clip not transformed into exception ?

2009-03-09 Thread David Cournapeau
Hi, While fixing a segfault in clip, I noticed a strange behavior: import numpy as np # Print NotImplemented, but does not raise any exception a = np.complex128().clip('rrr', 1) Where is this string output coming from ? From numpy or python ? How can I transform this into a proper exception

[Numpy-discussion] suggestion for generalizing numpy functions

2009-03-09 Thread Darren Dale
I spent some time over the weekend fixing a few bugs in numpy that were exposed when attempting to use ufuncs with ndarray subclasses. It got me thinking that, with relatively little work, numpy's functions could be made to be more general. For example, the numpy.ma module redefines many of the sta

Re: [Numpy-discussion] doc error in fromregex

2009-03-09 Thread Stéfan van der Walt
2009/3/9 Neal Becker : > http://docs.scipy.org/doc/numpy/reference/generated/numpy.fromregex.html#numpy.fromregex >>> says 'str or file', but I don't think it takes str, only file name > > Oh, so you mean pass a filename or an open file.  I thought it meant it could > read from a string. Yes, the

Re: [Numpy-discussion] doc error in fromregex

2009-03-09 Thread Neal Becker
Stéfan van der Walt wrote: > The code contains > > if not hasattr(file, "read"): > file = open(file,'r') > > so it should work. > > 2009/3/9 Neal Becker : >> http://docs.scipy.org/doc/numpy/reference/generated/numpy.fromregex.html#numpy.fromregex >> says 'str or file', but I don't

Re: [Numpy-discussion] doc error in fromregex

2009-03-09 Thread Stéfan van der Walt
The code contains if not hasattr(file, "read"): file = open(file,'r') so it should work. 2009/3/9 Neal Becker : > http://docs.scipy.org/doc/numpy/reference/generated/numpy.fromregex.html#numpy.fromregex > says 'str or file', but I don't think it takes str, only file name

[Numpy-discussion] doc error in fromregex

2009-03-09 Thread Neal Becker
http://docs.scipy.org/doc/numpy/reference/generated/numpy.fromregex.html#numpy.fromregex says 'str or file', but I don't think it takes str, only file name ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listin

Re: [Numpy-discussion] Handling named temporary files in tests

2009-03-09 Thread Francesc Alted
A Monday 09 March 2009, David Cournapeau escrigué: > Hi, > > While fixing several windows specific unit test failures, I > encountered some problems I am not sure how to solve. In particular, > we have a relatively common idiom as follows: > > Open file securely with a visible name (using Named

[Numpy-discussion] Handling named temporary files in tests

2009-03-09 Thread David Cournapeau
Hi, While fixing several windows specific unit test failures, I encountered some problems I am not sure how to solve. In particular, we have a relatively common idiom as follows: Open file securely with a visible name (using NamedTemporaryFile) write some content into it open the file with an

[Numpy-discussion] Changes and new workflow on Trac

2009-03-09 Thread Stéfan van der Walt
Hi all, Here is an outline of recent changes made to the Trac system. I have modified the ticket workflow on projects.scipy.org/{numpy,scipy} to accommodate patch review (see http://mentat.za.net/refer/workflow.png).  I hope this facility will make it easier to contribute, and I would like to hav