[Numpy-discussion] patch for structured array comparison bug

2010-10-18 Thread Mark Wiebe
I found a bug in structured array comparison when fields have multi-dimensional types. I created a ticket here: http://projects.scipy.org/numpy/ticket/1640 and a patch here: http://github.com/m-paradox/numpy/compare/master...fix_structured_compare Could someone review it for me? Thanks, Mark

Re: [Numpy-discussion] numpy installation in ubuntu

2010-10-18 Thread David
On 10/18/2010 10:45 PM, Pauli Virtanen wrote: > Mon, 18 Oct 2010 09:07:42 -0400, Ian Goodfellow wrote: > >> To do a standard installation, run >> sudo python setup.py install >> from inside the numpy directory > > Preferably, > > sudo python setup.py install --prefix=/usr/local > > and then y

Re: [Numpy-discussion] Another merge at github

2010-10-18 Thread Pauli Virtanen
Mon, 18 Oct 2010 12:20:00 +0300, Pearu Peterson wrote: [clip] > I see that there are long discussions in numpy ml about the git usage > and mis usage. I wonder whether this has converged to something that > could be used as reference for git beginners like me. I think there's agreement on what we

Re: [Numpy-discussion] datarray lightning talk at NYC Python group

2010-10-18 Thread John Salvatier
Maybe put it up on youtube? Or write down your pitch? As someone who dislikes R but thinks data.frames are good for something, I'd be interested in hearing the pitch, what the developers think the strengths and weaknesses of DatArray are. On Mon, Oct 18, 2010 at 2:18 PM, Fernando Perez wrote: > O

Re: [Numpy-discussion] datarray lightning talk at NYC Python group

2010-10-18 Thread Fernando Perez
On Mon, Oct 18, 2010 at 11:21 AM, M Trumpis wrote: > Just a heads up that I'm going to do a quick pitch for datarray this > Wed. at the NYC Python Meetup thing. > > If any collaborator is attending, please introduce yourself! > Well, Travis will be there speaking, if my Enthought newsletter is co

Re: [Numpy-discussion] DataArray fixes

2010-10-18 Thread Fernando Perez
On Mon, Oct 18, 2010 at 7:58 AM, Lluís wrote: > Ah well, I don't usually import routines into my namespace, but full > packages to avoid collisions and ease understanding of the source :) Good practice, though it's still (I think) best to avoid colliding with very common names in case someone use

[Numpy-discussion] datarray lightning talk at NYC Python group

2010-10-18 Thread M Trumpis
Just a heads up that I'm going to do a quick pitch for datarray this Wed. at the NYC Python Meetup thing. If any collaborator is attending, please introduce yourself! Mike ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.or

[Numpy-discussion] stride tricks for cellular automata

2010-10-18 Thread Robert Cimrman
FYI: I have added a new Cookbook entry, see [1], hoping that it might be useful to someone. The stride tricks are awesome! r. [1] http://scipy.org/Cookbook/GameOfLifeStrides ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.sci

Re: [Numpy-discussion] DataArray fixes

2010-10-18 Thread Lluís
Fernando Perez writes: > On Wed, Oct 13, 2010 at 6:02 AM, Lluís wrote: >> I thought that datarray module would be inside numpy, so the >> construction interface would be: >>      numpy.datarray.array(...) >>        User-friendly constructor with "inlined" contents. >>      numpy.datarray.DataArra

Re: [Numpy-discussion] ANN: NumPy 1.5.1 release candidate 1

2010-10-18 Thread Ralf Gommers
On Mon, Oct 18, 2010 at 9:55 PM, Vincent Davis wrote: > On Sun, Oct 17, 2010 at 5:35 AM, Ralf Gommers > wrote: >> Hi, >> >> I am pleased to announce the availability of the first release >> candidate of NumPy 1.5.1. This is a bug-fix release with no new >> features compared to 1.5.0. >> >> Binari

Re: [Numpy-discussion] ANN: NumPy 1.5.1 release candidate 1

2010-10-18 Thread Vincent Davis
On Sun, Oct 17, 2010 at 5:35 AM, Ralf Gommers wrote: > Hi, > > I am pleased to announce the availability of the first release > candidate of NumPy 1.5.1. This is a bug-fix release with no new > features compared to 1.5.0. > > Binaries, sources and release notes can be found at > https://sourceforg

Re: [Numpy-discussion] numpy installation in ubuntu

2010-10-18 Thread Pauli Virtanen
Mon, 18 Oct 2010 09:07:42 -0400, Ian Goodfellow wrote: > To do a standard installation, run > sudo python setup.py install > from inside the numpy directory Preferably, sudo python setup.py install --prefix=/usr/local and then you don't mess up your package manager. Pauli

Re: [Numpy-discussion] numpy installation in ubuntu

2010-10-18 Thread Ian Goodfellow
To do a standard installation, run sudo python setup.py install from inside the numpy directory Then your import should work elsewhere. By the way, "import *" can cause difficulties when you're working with several different files. For example, if you have a function called 'save' somewhere that

Re: [Numpy-discussion] Need help for the migration from Numeric to numpy

2010-10-18 Thread Frank Thommen
Bruce Southey wrote: > [...] >>> It took me a while to track it down, but there used to be a module/file >>> called 'convertcode.py' for conversion. It was mentioned as tip in >>> Travis's 'Guide to Numpy' page 31 in Jan 6 2005 version. But the >>> alter_code path is in Dec 7 2006 (linked at http:

Re: [Numpy-discussion] numpy installation in ubuntu

2010-10-18 Thread Peter
On Mon, Oct 18, 2010 at 11:55 AM, Alex Ter-Sarkissov wrote: > hi everyone, i'm very new to ubuntu, now trying to install numpy and > wxpython. Did you consider installing the Ubuntu provided packages, e.g. via apt-get or the Synaptic Package manager? That is *much* easier - but you won't get the

[Numpy-discussion] numpy installation in ubuntu

2010-10-18 Thread Alex Ter-Sarkissov
hi everyone, i'm very new to ubuntu, now trying to install numpy and wxpython. Having unpacked numpy and running the standard commnad in idle from numpy import * i get the message ImportError: Error importing numpy: you should not try to import numpy from its source directory; please ex

Re: [Numpy-discussion] how to find out element size of flexible dtype

2010-10-18 Thread Francesc Alted
A Monday 18 October 2010 03:42:39 Koert Kuipers escrigué: > Hello all, > If my function receives an array with a flexible dtype such as string > or unicode, how do I find out what the size (max number of elements, > not number of bytes) of the datatype is? > > For example: > >>> x = np.array(['a',

Re: [Numpy-discussion] Another merge at github

2010-10-18 Thread Hoyt Koepke
FYI for general readers, I found the following discussion on this topic really helpful: http://stackoverflow.com/questions/457927/git-workflow-and-rebase-vs-merge-questions --Hoyt + Hoyt Koepke + University of Washington Department of Statistics

Re: [Numpy-discussion] Another merge at github

2010-10-18 Thread Pearu Peterson
On 10/16/2010 09:53 PM, Charles R Harris wrote: > Here > . > This looks harmless but it makes the history really ugly. We need to get > the word out *not* to do things this way. Sorry, that was me and my git ignorance

Re: [Numpy-discussion] Another merge at github

2010-10-18 Thread Pearu Peterson
On 10/16/2010 09:53 PM, Charles R Harris wrote: > Here > . > This looks harmless but it makes the history really ugly. We need to get > the word out *not* to do things this way. Sorry, that was me and my git ignorance

Re: [Numpy-discussion] Another merge at github

2010-10-18 Thread Pauli Virtanen
Sat, 16 Oct 2010 23:23:46 -0600, Charles R Harris wrote: [clip] > And I just managed the same result on a push to maintenance/1.5.x :-/ > But I know how it happened, I cherry picked from master for a backport > before updating the 1.5.x branch from github. In Retrospect I probably > should have res