Re: [Numpy-discussion] [ANN] Bento (ex-toydist) 0.0.3

2010-07-01 Thread David Cournapeau
On Fri, Jul 2, 2010 at 1:56 PM, Robert Pyle wrote: > Hi, > > While I agree that toydist needs a new name, Bento might not be a good > choice.  It's already the name of a database system for Macintosh from > Filemaker, an Apple subsidiary.  I'd be *very* surprised if the name > Bento is not copyrig

Re: [Numpy-discussion] [ANN] Bento (ex-toydist) 0.0.3

2010-07-01 Thread Robert Pyle
Hi, While I agree that toydist needs a new name, Bento might not be a good choice. It's already the name of a database system for Macintosh from Filemaker, an Apple subsidiary. I'd be *very* surprised if the name Bento is not copyrighted. Have a look at http://www.filemaker.com/products/b

Re: [Numpy-discussion] numpy.all docstring reality check

2010-07-01 Thread Benjamin Root
This behavior is quite curious. While it is consistent and it behaves exactly as documented (after clarification), I am curious about the rational. Is it merely an unavoidable consequence of passing in the output array? Certainly a few examples from the above emails would make this extremely cle

Re: [Numpy-discussion] __array__struct__: about using PyCapsule instead of PyCObject for Python 2.7

2010-07-01 Thread Sturla Molden
Lisandro Dalcin skrev: > No, no sarcasm at all! I just realized that PyCObject were > (pending)deprecated in 2.7 ... Anyway. let me say I'm so annoyed and > upset as you. > > PyCapsule should be used instead. It has two main advantages over PyCObject: First, it associates a 'name' with the void

[Numpy-discussion] [ANN] Bento (ex-toydist) 0.0.3

2010-07-01 Thread David
Hi, I am pleased to announce the release 0.0.3 for Bento, the pythonic packaging solution. Wherease the 0.0.2 release was mostly about getting the simplest-still-useful subset of distutils features, this new release adds quite a few significant features: - Add hooks to customize arbitrar

[Numpy-discussion] where support full broadcasting, right?

2010-07-01 Thread David Goldsmith
Hi. The docstring (in the wiki) for where states: x, y : array_like, optionalValues from which to choose. *x* and *y* need to have the same shape as *condition*.But: >>> x = np.eye(2) >>> np.where(x,2,3) array([[2, 3], [3, 2]]) So apparently where supports broadcasting of scalars at least

[Numpy-discussion] Determine slices in a sorted array

2010-07-01 Thread Laszlo Nagy
Given an array with two axes, sorted by a column 'SLICE_BY', how can I extract slice indexes for rows with the same 'SLICE_BY' value? Here is an example program, demonstrating the problem: from numpy import * a = random.randint(0,100,(20,4)) SLICE_BY = 0 # Make slices of array 'a' by column SLI

Re: [Numpy-discussion] [ANN] PyTables 2.2 released: enter the multi-core age

2010-07-01 Thread Francesc Alted
A Thursday 01 July 2010 21:10:42 Francesc Alted escrigué: > http://www.pytables.org/download/preliminary Mmh, that should read: http://www.pytables.org/download/stable Sorry for the typo! -- Francesc Alted ___ NumPy-Discussion mailing list NumPy-Disc

[Numpy-discussion] [ANN] PyTables 2.2 released: enter the multi-core age

2010-07-01 Thread Francesc Alted
= Announcing PyTables 2.2 (final) = I'm happy to announce PyTables 2.2 (final). After 18 months of continuous development and testing, this is, by far, the most powerful and well-tested release ever. I hope you like it too. What's

Re: [Numpy-discussion] Ticket #1223...

2010-07-01 Thread David Goldsmith
On Thu, Jul 1, 2010 at 9:11 AM, Charles R Harris wrote: > > On Thu, Jul 1, 2010 at 8:40 AM, Bruce Southey wrote: > >> On 06/29/2010 11:38 PM, David Goldsmith wrote: >> >> On Tue, Jun 29, 2010 at 8:16 PM, Bruce Southey wrote: >> >>> On Tue, Jun 29, 2010 at 6:03 PM, David Goldsmith >>> wrote: >>>

Re: [Numpy-discussion] Ticket #1223...

2010-07-01 Thread Charles R Harris
On Thu, Jul 1, 2010 at 8:40 AM, Bruce Southey wrote: > On 06/29/2010 11:38 PM, David Goldsmith wrote: > > On Tue, Jun 29, 2010 at 8:16 PM, Bruce Southey wrote: > >> On Tue, Jun 29, 2010 at 6:03 PM, David Goldsmith >> wrote: >> > On Tue, Jun 29, 2010 at 3:56 PM, wrote: >> >> >> >> On Tue, Jun

Re: [Numpy-discussion] sum up to a specific value

2010-07-01 Thread Pauli Virtanen
to, 2010-07-01 kello 11:46 -0300, Renato Fabbri kirjoitti: > just a solution (not all of them) > > and the application happen to come up with something like 10k values > in the array. don care waiting, but... As said, the problem is a well-known one, and it's not really Python or Numpy-specific,

Re: [Numpy-discussion] Ufunc memory access optimization

2010-07-01 Thread Hans Meine
Hi Pauli and Anne, On Tuesday 15 June 2010 13:37:30 Pauli Virtanen wrote: > pe, 2010-06-11 kello 10:52 +0200, Hans Meine kirjoitti: > > At the bottom you can see that he basically wraps all numpy.ufuncs he can > > find in the numpy top-level namespace automatically. > > Ok, here's the branch: >

Re: [Numpy-discussion] sum up to a specific value

2010-07-01 Thread Vincent Davis
On Thu, Jul 1, 2010 at 8:46 AM, Renato Fabbri wrote: > just a solution (not all of them) > > and the application happen to come up with something like 10k values > in the array. don care waiting, but... then something like ( I am not testing this so you might need to "fix" it and it is ugly) solu

Re: [Numpy-discussion] sum up to a specific value

2010-07-01 Thread Renato Fabbri
just a solution (not all of them) and the application happen to come up with something like 10k values in the array. don care waiting, but... 2010/7/1 Vincent Davis : > On Thu, Jul 1, 2010 at 3:17 AM, Renato Fabbri wrote: >> hi, >> i need to find which elements of an array sums up to an specif

Re: [Numpy-discussion] Ticket #1223...

2010-07-01 Thread Bruce Southey
On 06/29/2010 11:38 PM, David Goldsmith wrote: On Tue, Jun 29, 2010 at 8:16 PM, Bruce Southey > wrote: On Tue, Jun 29, 2010 at 6:03 PM, David Goldsmith mailto:d.l.goldsm...@gmail.com>> wrote: > On Tue, Jun 29, 2010 at 3:56 PM, mailto:josef.p...@gmail.com>>

Re: [Numpy-discussion] sum up to a specific value

2010-07-01 Thread Vincent Davis
On Thu, Jul 1, 2010 at 3:17 AM, Renato Fabbri wrote: > hi, > i need to find which elements of an array sums up to an specific value > > any idea of how to do this? Not sure if there is a better way but a brut force way would be to >>> a array([[ 7., 5., 9., 3.], [ 7., 2., 7., 8.],

Re: [Numpy-discussion] numpy.load raising IOError but EOFError expected

2010-07-01 Thread V. Armando Solé
Ruben Salvador wrote: > Great! Thanks for all your answers! > > I actually have the files created as .npy (appending a new array eact > time). I know it's weird, and it's not its intended use. But, for > whatsoever reasons, I came to use that. No turn back now. > > Fortunately, I am able to read

Re: [Numpy-discussion] numpy.load raising IOError but EOFError expected

2010-07-01 Thread Ruben Salvador
Great! Thanks for all your answers! I actually have the files created as .npy (appending a new array eact time). I know it's weird, and it's not its intended use. But, for whatsoever reasons, I came to use that. No turn back now. Fortunately, I am able to read the files correctly, so being weird

Re: [Numpy-discussion] sum up to a specific value

2010-07-01 Thread Pauli Virtanen
Thu, 01 Jul 2010 06:17:50 -0300, Renato Fabbri wrote: > i need to find which elements of an array sums up to an specific value > > any idea of how to do this? Sounds like the knapsack problem http://en.wikipedia.org/wiki/Knapsack_problem ___ NumPy-Dis

[Numpy-discussion] sum up to a specific value

2010-07-01 Thread Renato Fabbri
hi, i need to find which elements of an array sums up to an specific value any idea of how to do this? best, rf -- GNU/Linux User #479299 skype: fabbri.renato ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/

Re: [Numpy-discussion] building numpy against Cray xt-libsci

2010-07-01 Thread Valene
Charles R Harris gmail.com> writes: > > > On Mon, May 24, 2010 at 1:57 AM, Amir gmail.com> wrote: > I am trying to build numpy against Cray's xt-libsci library on a Cray XT5. I am getting an error I am hoping for hints on how to resolve: > > In [1]: import numpy > > >      20         isfin