[Numpy-discussion] Name change of the ptp() function

2013-05-09 Thread Eli Bressert
The peak-to-peak function, ptp(), is a simple and handy function to use, but it confuses the PEP20 suggestions a bit. See this discussion for reference: http://d.pr/i/snXG Based on the discussion, it may be a good idea to make the name more relevant? Some suggestions include span() or valuerange()

Re: [Numpy-discussion] printing array in tabular form

2013-05-09 Thread Chris Barker - NOAA Federal
On Thu, May 9, 2013 at 1:06 AM, Sudheer Joseph wrote: > Thank you Gomersall, > However writing a formatted out put looks to be bit tricky with > python relative to other programing languages. > this is just plain wrong -- working with text in python is as easy, or easier, than most lang

Re: [Numpy-discussion] www.scipy.org down?

2013-05-09 Thread KACVINSKY Tom
I assume this is a bottom post list, so my answers are below... -Original Message- From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of David Cournapeau Sent: Thursday, May 09, 2013 10:45 AM To: Discussion of Numerical Python Subject: Re: [Nump

Re: [Numpy-discussion] www.scipy.org down?

2013-05-09 Thread KACVINSKY Tom
I ran the tests as per the instructions: python -c 'import numpy; numpy.test()' This is what I get for output: tkacvins@macomsim> !python python -Wd -c 'import numpy; numpy.test()' Running unit tests for numpy /rd/gen/tky/do_not_delete/Python/macpython27/lib/python2.7/site-packages/nose

Re: [Numpy-discussion] www.scipy.org down?

2013-05-09 Thread Robert Kern
On Thu, May 9, 2013 at 3:25 PM, KACVINSKY Tom wrote: > Unfortunately, the Mac OS downloads won't work for us as they install into > the system Python. We have a custom built Python (2.7.3) so I compiled from > source. I noticed a few things: > > 1. The modules compiled from C source have an e

Re: [Numpy-discussion] www.scipy.org down?

2013-05-09 Thread David Cournapeau
On Thu, May 9, 2013 at 3:25 PM, KACVINSKY Tom wrote: > Unfortunately, the Mac OS downloads won't work for us as they install into > the system Python. They actually install in a python installed from python.org, not system > We have a custom built Python (2.7.3) so I compiled from source. I n

Re: [Numpy-discussion] www.scipy.org down?

2013-05-09 Thread KACVINSKY Tom
Unfortunately, the Mac OS downloads won't work for us as they install into the system Python. We have a custom built Python (2.7.3) so I compiled from source. I noticed a few things: 1. The modules compiled from C source have an extension of .so, not .dylib 2. I installed nose so I could run

Re: [Numpy-discussion] www.scipy.org down?

2013-05-09 Thread Robert Kern
On Thu, May 9, 2013 at 2:10 PM, KACVINSKY Tom wrote: > I am looking for a release of numpy for Mac OS, but I can't reach the scipy > web server. IS it down for maintenance? It might have been. It's up now. The PyPI page is the best place to start looking for downloads: https://pypi.python.org

[Numpy-discussion] www.scipy.org down?

2013-05-09 Thread KACVINSKY Tom
I am looking for a release of numpy for Mac OS, but I can't reach the scipy web server. IS it down for maintenance? Thanks, Tom This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If yo

Re: [Numpy-discussion] Integer type casting and OverflowError

2013-05-09 Thread Robert Kern
On Thu, May 9, 2013 at 11:50 AM, Pauli Virtanen wrote: > 09.05.2013 13:21, Robert Kern kirjoitti: >> With master numpy (and back to 1.6.1, at least): >> >> [~] >> |1> np.int32(3054212286) >> -1240755010 >> >> It seems like at one time, this used to raise an OverflowError. We can >> see this in at

Re: [Numpy-discussion] Integer type casting and OverflowError

2013-05-09 Thread Pauli Virtanen
09.05.2013 13:21, Robert Kern kirjoitti: > With master numpy (and back to 1.6.1, at least): > > [~] > |1> np.int32(3054212286) > -1240755010 > > It seems like at one time, this used to raise an OverflowError. We can > see this in at least one place in scipy: It actually still raises an overflowe

Re: [Numpy-discussion] Integer type casting and OverflowError

2013-05-09 Thread Scott Sinclair
On 9 May 2013 12:45, Robert Kern wrote: > On Thu, May 9, 2013 at 11:38 AM, Scott Sinclair > wrote: >> On 9 May 2013 12:21, Robert Kern wrote: >>> With master numpy (and back to 1.6.1, at least): >>> >>> [~] >>> |1> np.int32(3054212286) >>> -1240755010 >>> >>> >>> It seems like at one time, this

Re: [Numpy-discussion] Integer type casting and OverflowError

2013-05-09 Thread Robert Kern
On Thu, May 9, 2013 at 11:38 AM, Scott Sinclair wrote: > On 9 May 2013 12:21, Robert Kern wrote: >> With master numpy (and back to 1.6.1, at least): >> >> [~] >> |1> np.int32(3054212286) >> -1240755010 >> >> >> It seems like at one time, this used to raise an OverflowError. We can >> see this in

Re: [Numpy-discussion] Integer type casting and OverflowError

2013-05-09 Thread Scott Sinclair
On 9 May 2013 12:21, Robert Kern wrote: > With master numpy (and back to 1.6.1, at least): > > [~] > |1> np.int32(3054212286) > -1240755010 > > > It seems like at one time, this used to raise an OverflowError. We can > see this in at least one place in scipy: > > https://github.com/scipy/scipy/blo

[Numpy-discussion] Integer type casting and OverflowError

2013-05-09 Thread Robert Kern
With master numpy (and back to 1.6.1, at least): [~] |1> np.int32(3054212286) -1240755010 It seems like at one time, this used to raise an OverflowError. We can see this in at least one place in scipy: https://github.com/scipy/scipy/blob/master/scipy/interpolate/fitpack.py#L912 Is this a regre

Re: [Numpy-discussion] printing array in tabular form

2013-05-09 Thread Henry Gomersall
On Thu, 2013-05-09 at 16:06 +0800, Sudheer Joseph wrote: > If I wanted to print below text in a file (for reading by another > program), it looks to be not an easy jobHope new developments will > come and a userfriendly formatted out put method for pyton will > evolve. I don't understand what

Re: [Numpy-discussion] printing array in tabular form

2013-05-09 Thread Daπid
On 9 May 2013 10:06, Sudheer Joseph wrote: > However writing a formatted out put looks to be bit tricky with python > relative to other programing languages. If performance is not an issue, you could do it by hand, as you can always do in any programming language: savefile = open('data.txt', 'w

Re: [Numpy-discussion] printing array in tabular form

2013-05-09 Thread Sudheer Joseph
Thank you Gomersall,   However writing a formatted out put looks to be bit tricky with python relative to other programing languages. For example, If I wanted to print below text in a file (for reading by another program), it looks to be not an easy jobHope new developments will