[Numpy-discussion] atpy and readable buffer error

2011-04-05 Thread Tommy Grav
I get this error that I do not understand. Does anyone know what is happening and how to get around it >>> import atpy >>> t = atpy.Table() >>> name = ["aa","bb","cc"] >>> t.add_column("name",name) >>> k = [1,2,3] >>> t.add_column("num",k) >>> t >>> name = ["aaa","bbb","ccc"] >>> p = atpy.Table()

Re: [Numpy-discussion] Removing datetime support for 1.4.x series ?

2010-02-08 Thread Tommy Grav
ware written. All over many thanks to all that has made numpy such an enormously useful tool in my scientific career! Cheers Tommy Grav ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] numpy for 2.6 on mac os x

2009-07-10 Thread Tommy Grav
The current dmg on the numpy download pages is buildt against 2.5. Is there any plans to make one for 2.6 or do I have to compile from the source? Cheers Tommy ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mail

Re: [Numpy-discussion] matrix default to column vector?

2009-06-04 Thread Tommy Grav
On Jun 4, 2009, at 5:41 PM, Alan G Isaac wrote: > On 6/4/2009 5:27 PM Tommy Grav apparently wrote: >> Or the core development team split the matrices out of numpy and >> make it >> as separate package that the people that use them could pick up and >> run with. > &

Re: [Numpy-discussion] matrix default to column vector?

2009-06-04 Thread Tommy Grav
On Jun 4, 2009, at 5:25 PM, Christopher Barker wrote: > Keith Goodman wrote: >> Maybe announcing that numpy will drop support for matrices in a >> future >> version (3.0, ...) would save a lot of pain in the long run. > > Or make them better. There was a pretty good discussion of this a > whil

Re: [Numpy-discussion] Leopard install

2009-04-13 Thread Tommy Grav
On Apr 12, 2009, at 7:02 PM, David Cournapeau wrote: > On Mon, Apr 13, 2009 at 1:19 AM, Stuart Edwards > wrote: >> Hi >> >> I am trying to install numpy 1.3.0 on Leopard 10.5.6 and at the point >> in the install process where I select a destination, my boot disc is >> excluded with the message: >

[Numpy-discussion] Fwd: [ANN] Numpy 1.3.0rc2

2009-04-03 Thread Tommy Grav
On Apr 3, 2009, at 11:18 AM, David Cournapeau wrote: > Hi, > > I am pleased to announce the release of the rc2 for numpy 1.3.0. I > have > decided to go for a rc2 instead of the release directly because of the > serious mac os X issue. You can find source tarballs and installers > for > both M

Re: [Numpy-discussion] [Announce] Numpy 1.3.0 rc1

2009-04-01 Thread Tommy Grav
On Mar 30, 2009, at 2:56 AM, David Cournapeau wrote: > On Mon, Mar 30, 2009 at 3:36 AM, Robert Pyle > wrote: > >> >> I just installed 2.5.4 from python.org, and the OS X installer still >> doesn't work. This is on a PPC G5; I haven't tried it on my Intel >> MacBook Pro. > > I think I got it.

Re: [Numpy-discussion] building numpy/scipy

2009-01-02 Thread Tommy Grav
There is a superpack for the python2.5 at the same page. Again a binary .exe file that should make the installing a fair bit easier. Cheers Tommy On Jan 2, 2009, at 11:26 PM, Mike Landis wrote: > Have to use Pyton 2.5 because I'm also using web2py. Python 2.5 and > a bunch of packages th

Re: [Numpy-discussion] building numpy/scipy

2009-01-02 Thread Tommy Grav
> Is there any reason why you can not use the numpy-1.2.1-win32- superpack-python2.4.exe from the http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103 download page? I think that is what Mr. Kern meant by using the binaries. This will install already built code into the

Re: [Numpy-discussion] Py3k and numpy

2008-12-04 Thread Tommy Grav
On Dec 4, 2008, at 2:03 PM, Robert Kern wrote: > It does. What problems are people seeing? Is it just the Windows build > that causes people to say "numpy doesn't work with Python 2.6"? There is currently no official Mac OSX binary for numpy for python 2.6, but you can build it from source. Is the

Re: [Numpy-discussion] 1.2.0rc1 tagged!

2008-09-10 Thread Tommy Grav
On Sep 10, 2008, at 10:12 PM, Robert Kern wrote: > On Wed, Sep 10, 2008 at 19:58, Tommy Grav <[EMAIL PROTECTED]> wrote: >> I thought is was pretty standard that non-system versions of python >> should go >> into /Library/Frameworks/Python.framework/ on the OS X? Is th

Re: [Numpy-discussion] 1.2.0rc1 tagged!

2008-09-10 Thread Tommy Grav
I thought is was pretty standard that non-system versions of python should go into /Library/Frameworks/Python.framework/ on the OS X? Is this not the case? Cheers Tommy ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.

Re: [Numpy-discussion] Bug in numpy.histogram?

2008-06-09 Thread Tommy Grav
quicker :) Cheers Tommy On Jun 9, 2008, at 11:17 AM, Pauli Virtanen wrote: > ma, 2008-06-09 kello 11:11 -0400, Tommy Grav kirjoitti: >> With the most recent change in numpy 1.1 it seems that >> numpy.histogram >> was broken when wanting a normalized histogram. I thou

[Numpy-discussion] Bug in numpy.histogram?

2008-06-09 Thread Tommy Grav
With the most recent change in numpy 1.1 it seems that numpy.histogram was broken when wanting a normalized histogram. I thought the idea was to leave the functionality of histogram as it was in 1.1 and then break the api in 1.2? import numpy a = [0,1,2,3,4,5,6,7,8] numpy.histogram(a) /Library/F

Re: [Numpy-discussion] Which Python to Use on OSX, Was: 1.1.0 OSX Installer Fails Under 10.5.3?

2008-06-04 Thread Tommy Grav
You have to very careful when you do this. For example the system numpy is in ../python2.5/Extras/lib/ under the framework, while I think the numpy binary installer installs things in ../python2.5/lib/site-packages/. So if one is not careful one ends up with two numpy packages with all the problems

Re: [Numpy-discussion] 1.1.0 OSX Installer Fails Under 10.5.3?

2008-06-03 Thread Tommy Grav
Where is your python located> I have installed numpy 1.1.0 using the binary installer successfully on 10.5.3 but I am using ActiveState python. I think the problem might be that the installer looks in /Library/Frameworks/Python.framework/ for python, while the standard python is located somewhere e

Re: [Numpy-discussion] URGENT: Re: 1.1.0rc1, Mac Installer: please test it

2008-05-21 Thread Tommy Grav
Doing the same on a the Mac installer also returns 3 failures and 12 errors with all=True. Installer works fine though :) [skathi:~] tgrav% python ActivePython 2.5.1.1 (ActiveState Software Inc.) based on Python 2.5.1 (r251:54863, May 1 2007, 17:40:00) [GCC 4.0.1 (Apple Computer, Inc. build 525

Re: [Numpy-discussion] 1.1.0rc1 OSX Installer - please test

2008-05-20 Thread Tommy Grav
Library/Frameworks/Python.framework/Versions/Current/bin/python > > > On Tue, May 20, 2008 at 11:04 AM, Tommy Grav <[EMAIL PROTECTED]> wrote: >> Powerbook G4 with 10.5.2 and Activestate Python 2.5.1.1, no problems >> beyond the tw

Re: [Numpy-discussion] 1.1.0rc1 OSX Installer - please test

2008-05-20 Thread Tommy Grav
Powerbook G4 with 10.5.2 and Activestate Python 2.5.1.1, no problems beyond the two endian test failures Cheers Tommy On May 20, 2008, at 12:57 PM, Christopher Burns wrote: > Reminder to please test the installer. We already discovered a couple > endian bugs on PPC, which is good, but we'd

Re: [Numpy-discussion] 1.1.0rc1 OSX Installer - please test

2008-05-19 Thread Tommy Grav
On May 19, 2008, at 4:38 PM, Robert Kern wrote: > On Mon, May 19, 2008 at 3:35 PM, Robert Kern <[EMAIL PROTECTED]> > wrote: >> Endianness issues. Probably bugs in the code. > > By which I meant "test code". numpy itself is fine and is working > correctly. The tests themselves incorrectly assume

Re: [Numpy-discussion] 1.1.0rc1 OSX Installer - please test

2008-05-19 Thread Tommy Grav
On May 19, 2008, at 3:39 PM, Christopher Burns wrote: > I've built a Mac binary for the 1.1 release candidate. Mac users, > please test it from: > > https://cirl.berkeley.edu/numpy/numpy-1.1.0rc1-py2.5-macosx10.5.dmg > > This is for the MacPython installed from python.org. > > Thanks, > Chris I

Re: [Numpy-discussion] numpy release

2008-04-24 Thread Tommy Grav
I think a long term strategy needs to be adopted for histogram. Right now there is a great confusion in what the "bins" keyword does. Right now it is defined as the lower edge of each bin, meaning that the last bin is open ended and [inf,bin0> does not exist. While this may not be the right thing t

Re: [Numpy-discussion] access ndarray in C++

2008-04-23 Thread Tommy Grav
On Apr 23, 2008, at 11:26 AM, Joris De Ridder wrote: > > They are attached to the wiki page. Click on "Attachments" in the menu > on the left. > > Joris Thanks. Didn't know that wiki's had that :) I tried you example on a Mac OS X 10.5.2 (I am not using Scons) and got [skathi:~/Work/myCode/pyC

Re: [Numpy-discussion] access ndarray in C++

2008-04-23 Thread Tommy Grav
On Apr 22, 2008, at 9:56 PM, Joris De Ridder wrote: > > On http://www.scipy.org/JorisDeRidder I've just put an example how I > passed multidimensional Numpy arrays to C++ using ctypes. Perhaps > it's helpful for your application. I didn't put it in the cookbook > yet, because I would first

Re: [Numpy-discussion] Ticket #605 Incorrect behavior of numpy.histogram

2008-04-07 Thread Tommy Grav
On Apr 7, 2008, at 4:14 PM, LB wrote: > +1 for axis and +1 for a keyword to define what to do with values > outside the range. > > For the keyword, ather than 'outliers', I would propose 'discard' or > 'exclude', because it could be used to describe the four > possibilities : > - discard='low'

Re: [Numpy-discussion] Ticket #605 Incorrect behavior of numpy.histogram

2008-04-06 Thread Tommy Grav
On Apr 5, 2008, at 2:01 PM, Bruce Southey wrote: > Hi, > I have been investigating Ticket #605 'Incorrect behavior of > numpy.histogram' (http://scipy.org/scipy/numpy/ticket/605 ). I think that my preference depends on the definition of what the bin number means. If the bin numbers are the lower

[Numpy-discussion] Warnings

2007-10-09 Thread Tommy Grav
How can I get the line number of where a numpy warning message is envoked in my code? Cheers Tommy ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Getting subarray

2007-04-24 Thread Tommy Grav
I have two arrays: a = numpy.array([0,1,2,3,4,5,6,7,8,9]) b = numpy.array([0,0,1,1,2,2,0,1,2,3]) I would like to get the part of a that corresponds to where b is equal to i. For example: i = 0 => ([0,1,6]) i = 1 => ([2,3,7]) Cheers Tommy ___ Nump

[Numpy-discussion] Fwd: Getting subarray

2007-04-23 Thread Tommy Grav
I have two arrays: a = numpy.array([0,1,2,3,4,5,6,7,8,9]) b = numpy.array([0,0,1,1,2,2,0,1,2,3]) I would like to get the part of a that corresponds to where b is equal to i. For example: i = 0 => ([0,1,6]) i = 1 => ([2,3,7]) Cheers Tommy ___ Num

[Numpy-discussion] index of minimum of array

2007-04-13 Thread Tommy Grav
Hi, how do I find the index of the minimum value of an numpy array? Example a = array([1.,2.,0.4,3.]) I want the i=2 since a[i] = 0.4 is the smallest value in a. Cheers Tommy ___ Numpy-discussion mailing list [EMAIL PROTECTED] http://proj

Re: [Numpy-discussion] Import problem

2007-04-13 Thread Tommy Grav
> Where did you get the scipy binary from? I was using the superpack from the scipy.org downloads page. I however found the library bundle up with g77 and downloaded that so now I get the import to work. I expect that there might be other libraries I am missing but I will have to deal with t

[Numpy-discussion] Import problem

2007-04-13 Thread Tommy Grav
I am trying to import scipy.optimize on my Mac OS X PowerPc and get this error [EMAIL PROTECTED] Python/Astronomy --> python ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on Python 2.4.3 (#1, Apr 3 2006, 18:07:18) [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin Ty

Re: [Numpy-discussion] lsq problem

2007-02-14 Thread Tommy Grav
On Feb 14, 2007, at 10:11 PM, Keith Goodman wrote: > On 2/14/07, Tommy Grav <[EMAIL PROTECTED]> wrote: >> I need to fit a gaussian profile to a set of points and would like to >> use scipy (or numpy) to >> do the least square fitting if possible. I am however unsure if

[Numpy-discussion] lsq problem

2007-02-14 Thread Tommy Grav
I need to fit a gaussian profile to a set of points and would like to use scipy (or numpy) to do the least square fitting if possible. I am however unsure if the proper routines are available, so I thought I would ask to get some hints to get going in the right direction. The input are two 1

[Numpy-discussion] ScipySuperpack for Mac (PowerPC)

2006-12-01 Thread Tommy Grav
I installed the Mac ScipySuperpack (from http://www.scipy.org/Download). However it seems that the version of matplotlib in there is not compatible with their version of numpy [EMAIL PROTECTED] ch2/pbcd -> python ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on Python 2.4.3 (#1,