Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Charles R Harris
Hi Jarrod, On Tue, May 6, 2008 at 2:40 AM, Jarrod Millman <[EMAIL PROTECTED]> wrote: > Hey, > > The trunk is in pretty good shape and it is about time that I put out > an official release. So tomorrow (in a little over twelve hours) I am > going to create a 1.1.x branch and the trunk will be off

Re: [Numpy-discussion] malloc failures on 10.5.2 w/ apple python2.5.1

2008-05-07 Thread David Cournapeau
On Wed, 2008-05-07 at 08:30 -0500, James Snyder wrote: > Hi - > > I'm not sure if this is a bug or an error on my part. I've grabbed > the latest subversion truck and did a build and install on 10.5.2, and > I'm getting malloc errors when running the tests. Sorry about the > revision being loppe

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Charles R Harris
On Wed, May 7, 2008 at 6:19 PM, Anne Archibald <[EMAIL PROTECTED]> wrote: > 2008/5/7 Charles R Harris <[EMAIL PROTECTED]>: > > > > On Wed, May 7, 2008 at 5:31 PM, Anne Archibald < > [EMAIL PROTECTED]> > > wrote: > > > Ah. Good point. I did find a bug - x[:,0] doesn't do what you'd > > > expect. Be

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Anne Archibald
2008/5/7 Charles R Harris <[EMAIL PROTECTED]>: > > Heh, I just added some tests to 1.2 before closing ticket #707. They should > probably be merged with yours. Seems a shame: Ran 1000 tests in 5.329s Such a nice round number! Anne ___ Numpy-discussion

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Charles R Harris
On Wed, May 7, 2008 at 6:17 PM, Anne Archibald <[EMAIL PROTECTED]> wrote: > 2008/5/7 Anne Archibald <[EMAIL PROTECTED]>: > > 2008/5/7 Charles R Harris <[EMAIL PROTECTED]>: > > > > > On Wed, May 7, 2008 at 11:44 AM, Anne Archibald < > [EMAIL PROTECTED]> > > > wrote: > > > > 2008/5/7 Jarrod Millm

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Anne Archibald
2008/5/7 Charles R Harris <[EMAIL PROTECTED]>: > > On Wed, May 7, 2008 at 5:31 PM, Anne Archibald <[EMAIL PROTECTED]> > wrote: > > Ah. Good point. I did find a bug - x[:,0] doesn't do what you'd > > expect. Best not release without either backing out my change. I'm > > still trying to track down wh

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Anne Archibald
2008/5/7 Anne Archibald <[EMAIL PROTECTED]>: > 2008/5/7 Charles R Harris <[EMAIL PROTECTED]>: > > > On Wed, May 7, 2008 at 11:44 AM, Anne Archibald <[EMAIL PROTECTED]> > > wrote: > > > 2008/5/7 Jarrod Millman <[EMAIL PROTECTED]>: > > > > > > > I have just created the 1.1.x branch: > > > > ht

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Charles R Harris
On Wed, May 7, 2008 at 5:31 PM, Anne Archibald <[EMAIL PROTECTED]> wrote: > 2008/5/7 Charles R Harris <[EMAIL PROTECTED]>: > > > On Wed, May 7, 2008 at 11:44 AM, Anne Archibald < > [EMAIL PROTECTED]> > > wrote: > > > 2008/5/7 Jarrod Millman <[EMAIL PROTECTED]>: > > > > > > > I have just created th

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Anne Archibald
2008/5/7 Charles R Harris <[EMAIL PROTECTED]>: > On Wed, May 7, 2008 at 11:44 AM, Anne Archibald <[EMAIL PROTECTED]> > wrote: > > 2008/5/7 Jarrod Millman <[EMAIL PROTECTED]>: > > > > > I have just created the 1.1.x branch: > > > http://projects.scipy.org/scipy/numpy/changeset/5134 > > > In about

[Numpy-discussion] Embedding Python - data exchange && no Boost

2008-05-07 Thread Thomas Hrabe
Hi all, I am writing an embedded python application in C/C++ with the following features: 1. The user is able to execute python commands (works fine with PyRun_SimpleString) 2. I want the user to be able to load C objects from C into the current python interpreter, so that the user is able to

Re: [Numpy-discussion] no longer receiving numpy-tickets messages

2008-05-07 Thread Charles R Harris
On Wed, May 7, 2008 at 2:54 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Wed, May 7, 2008 at 3:51 PM, Christopher Hanley <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > I've noticed that I am no longer receiving message from the > numpy-ticket > > distribution list. This includes messages for t

Re: [Numpy-discussion] bug in oldnumeric.ma

2008-05-07 Thread Anne Archibald
2008/5/7 Pierre GM <[EMAIL PROTECTED]>: > On Wednesday 07 May 2008 20:38:22 Anne Archibald wrote: > > 2008/5/7 Pierre GM <[EMAIL PROTECTED]>: > > > All, > > > Yes, there is a problem with ma.power: masking negative data should be > > > restricted to the case of an exponent between -1. and 1.

Re: [Numpy-discussion] bug in oldnumeric.ma

2008-05-07 Thread Anne Archibald
2008/5/7 Jonathan Wright <[EMAIL PROTECTED]>: > Is there a rule against squaring away the negatives? > > def not_your_normal_pow( x, y ): return exp( log( power( x, 2) ) * y / 2 ) > > Which still needs some work for x==0. Well, it means (-1.)**(3.) becomes 1., which is probably not what the us

Re: [Numpy-discussion] bug in oldnumeric.ma

2008-05-07 Thread Jonathan Wright
Anne Archibald wrote: > 2008/5/7 Pierre GM <[EMAIL PROTECTED]>: > >> All, >> Yes, there is a problem with ma.power: masking negative data should be >> restricted to the case of an exponent between -1. and 1. only, don't you >> think ? >> > > No, there's a problem with any fractional expo

Re: [Numpy-discussion] Is a string a scalar?

2008-05-07 Thread Robert Kern
On Wed, May 7, 2008 at 3:58 PM, Keith Goodman <[EMAIL PROTECTED]> wrote: > On Wed, May 7, 2008 at 1:37 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > > On Wed, May 7, 2008 at 3:24 PM, Keith Goodman <[EMAIL PROTECTED]> wrote: > > > >> np.isscalar('string') > > >True > > > > Either option

Re: [Numpy-discussion] Is a string a scalar?

2008-05-07 Thread Keith Goodman
On Wed, May 7, 2008 at 1:37 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Wed, May 7, 2008 at 3:24 PM, Keith Goodman <[EMAIL PROTECTED]> wrote: > > >> np.isscalar('string') > >True > > Either option would cause someone to complain. It's not a > cut-and-dry issue. However, since strings c

Re: [Numpy-discussion] bug in oldnumeric.ma

2008-05-07 Thread Pierre GM
On Wednesday 07 May 2008 20:38:22 Anne Archibald wrote: > 2008/5/7 Pierre GM <[EMAIL PROTECTED]>: > > All, > > Yes, there is a problem with ma.power: masking negative data should be > > restricted to the case of an exponent between -1. and 1. only, don't you > > think ? > > No, there's a problem

Re: [Numpy-discussion] no longer receiving numpy-tickets messages

2008-05-07 Thread Robert Kern
On Wed, May 7, 2008 at 3:51 PM, Christopher Hanley <[EMAIL PROTECTED]> wrote: > Hi, > > I've noticed that I am no longer receiving message from the numpy-ticket > distribution list. This includes messages for tickets I have submitted > in addition to tickets created by others. I'll pass this a

[Numpy-discussion] no longer receiving numpy-tickets messages

2008-05-07 Thread Christopher Hanley
Hi, I've noticed that I am no longer receiving message from the numpy-ticket distribution list. This includes messages for tickets I have submitted in addition to tickets created by others. Chris -- Christopher Hanley Systems Software Engineer Space Telescope Science Institute 3700 San Marti

Re: [Numpy-discussion] bug in oldnumeric.ma

2008-05-07 Thread Anne Archibald
2008/5/7 Pierre GM <[EMAIL PROTECTED]>: > All, > Yes, there is a problem with ma.power: masking negative data should be > restricted to the case of an exponent between -1. and 1. only, don't you > think ? No, there's a problem with any fractional exponent (with even denominator): x**(3/2) == (x

Re: [Numpy-discussion] Is a string a scalar?

2008-05-07 Thread Robert Kern
On Wed, May 7, 2008 at 3:24 PM, Keith Goodman <[EMAIL PROTECTED]> wrote: > >> np.isscalar('string') >True Either option would cause someone to complain. It's not a cut-and-dry issue. However, since strings can be atomic elements through the various '|S' dtypes, and we already have rules to sp

[Numpy-discussion] Is a string a scalar?

2008-05-07 Thread Keith Goodman
>> np.isscalar('string') True ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] bug in oldnumeric.ma

2008-05-07 Thread Pierre GM
All, Yes, there is a problem with ma.power: masking negative data should be restricted to the case of an exponent between -1. and 1. only, don't you think ? On Wednesday 07 May 2008 18:47:18 Anne Archibald wrote: > 2008/5/7 Eric Firing <[EMAIL PROTECTED]>: > > Charles Doutriaux wrote: > > > The

Re: [Numpy-discussion] bug in oldnumeric.ma

2008-05-07 Thread Anne Archibald
2008/5/7 Eric Firing <[EMAIL PROTECTED]>: > Charles Doutriaux wrote: > > The following code works with numpy.ma but not numpy.oldnumeric.ma, > > No, this is a bug in numpy.ma also; power is broken: While it's tempting to just call power() and mask out any NaNs that result, that's going to be a p

Re: [Numpy-discussion] bug in oldnumeric.ma

2008-05-07 Thread Eric Firing
Charles Doutriaux wrote: > The following code works with numpy.ma but not numpy.oldnumeric.ma, No, this is a bug in numpy.ma also; power is broken: In [1]:import numpy as np In [2]:x = np.ma.array([-1.1]) In [3]:x**2.0 ### This works Out[3]: masked_array(data = [1.21],

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Charles R Harris
On Wed, May 7, 2008 at 11:44 AM, Anne Archibald <[EMAIL PROTECTED]> wrote: > 2008/5/7 Jarrod Millman <[EMAIL PROTECTED]>: > > I have just created the 1.1.x branch: > > http://projects.scipy.org/scipy/numpy/changeset/5134 > > In about 24 hours I will tag the 1.1.0 release from the branch. At > >

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Anne Archibald
2008/5/7 Jarrod Millman <[EMAIL PROTECTED]>: > I have just created the 1.1.x branch: > http://projects.scipy.org/scipy/numpy/changeset/5134 > In about 24 hours I will tag the 1.1.0 release from the branch. At > this point only critical bug fixes should be applied to the branch. > The trunk is

[Numpy-discussion] bug in oldnumeric.ma

2008-05-07 Thread Charles Doutriaux
The following code works with numpy.ma but not numpy.oldnumeric.ma, obviously it shouldn't have missing values... Note that replacing 2. with 2 (int) works, dtype does not seem to matter import numpy.oldnumeric.ma as MA,numpy s = MA.array([ 12.16271591, 11.19478798, 10.27440453, 9.60334778, 9.

[Numpy-discussion] Numpy and google-analytics

2008-05-07 Thread Keith Goodman
I noticed that scipy.org uses google-analytics. Does the numpy project need it? It is even on the numpy trac which to me gives new meaning to trac. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/n

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Stéfan van der Walt
2008/5/7 Albert Strasheim <[EMAIL PROTECTED]>: > Even better: let the Buildbot do it. > > You should see some Valgrind output appearing in the testing output of > the Linux_x86_Fedora_Py2.6 builder soon. I'll probably have to tune > things a bit to make it go green/red in the right situations.

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Albert Strasheim
Hello, On Wed, May 7, 2008 at 3:42 PM, Albert Strasheim <[EMAIL PROTECTED]> wrote: > Might be a bit late now, but are you (or is someone) still Valgrinding > NumPy on a semi-regular basis, or at least before a release? Even better: let the Buildbot do it. You should see some Valgrind output ap

Re: [Numpy-discussion] Status Report for NumPy 1.1.0

2008-05-07 Thread Albert Strasheim
Hello, On Wed, May 7, 2008 at 8:12 AM, Jarrod Millman <[EMAIL PROTECTED]> wrote: > I have just created the 1.1.x branch: > http://projects.scipy.org/scipy/numpy/changeset/5134 > In about 24 hours I will tag the 1.1.0 release from the branch. At > this point only critical bug fixes should be ap

[Numpy-discussion] malloc failures on 10.5.2 w/ apple python2.5.1

2008-05-07 Thread James Snyder
Hi - I'm not sure if this is a bug or an error on my part. I've grabbed the latest subversion truck and did a build and install on 10.5.2, and I'm getting malloc errors when running the tests. Sorry about the revision being lopped off the Numpy version, I'm current up to r5133, but I'm using git

Re: [Numpy-discussion] "Segmentation fault (core dumped)" as re: segmentation fault

2008-05-07 Thread Marius Nijhuis
Hi, The array I was using is indeed from a pickle. I ran the c example, and got the following: $ LD_PRELOAD=/usr/lib/sse2/libcblas.so.3.0 ./sse2-crash-test good_align: ok bad_align: Segmentation fault (core dumped) $ LD_PRELOAD=/usr/lib/libcblas.so.3.0 ./sse2-crash-test good_align: ok bad_align: