Re: [Numpy-discussion] tofile speed

2007-07-23 Thread Lars Friedrich
Hello everyone, thank you for the replies. Sebastian, the chunk size is roughly 4*10^6 samples, with two byte per sample, this is about 8MB. I can vary this size, but increasing it only helps for much smaller values. For example, when I use a size of 100 Samples, I am much too slow. It gets be

Re: [Numpy-discussion] output arguments

2007-07-23 Thread Robert Kern
Thomas Breuel wrote: > Hi, > > core NumPy doesn't seem to support a lot of output arguments, or common > composite operations. For example, a common operation is something like > > a = outer(b,c) > > or > > a += outer(b,c) > > There are some workarounds, but they aren't pretty. Consistently

[Numpy-discussion] output arguments

2007-07-23 Thread Thomas Breuel
Hi, core NumPy doesn't seem to support a lot of output arguments, or common composite operations. For example, a common operation is something like a = outer(b,c) or a += outer(b,c) There are some workarounds, but they aren't pretty. Consistently providing output arguments throughout NumPy

Re: [Numpy-discussion] getting numPy happening for sciPy

2007-07-23 Thread Matthieu Brucher
2007/7/23, Les Schaffer <[EMAIL PROTECTED]>: Robert Kern wrote: > We'll need a volunteer release manager for that, or it won't happen. Most of the > principals are very busy right now. will it compile with Visual C++ 2005 Express? if so, i'd give it a try. Windows binaries must be compiled w

Re: [Numpy-discussion] tofile speed

2007-07-23 Thread Charles R Harris
On 7/23/07, Lars Friedrich <[EMAIL PROTECTED]> wrote: Hello everyone, I am using array.tofile successfully for a data-acqusition-streaming application. I mean that I do the following: for a long time: temp = dataAcquisisionDevice.getData() temp.tofile(myDataFile) temp is a num

Re: [Numpy-discussion] getting numPy happening for sciPy

2007-07-23 Thread Les Schaffer
Robert Kern wrote: > We'll need a volunteer release manager for that, or it won't happen. Most of > the > principals are very busy right now. will it compile with Visual C++ 2005 Express? if so, i'd give it a try. Les Schaffer ___ Numpy-discussion mail

Re: [Numpy-discussion] getting numPy happening for sciPy

2007-07-23 Thread Robert Kern
Steven H. Rogers wrote: > I don't know of any simple build instructions for Windows, but if you're > patient, there will probably be updated packaged releases of SciPy + > NumPy that play well together "real soon now". We'll need a volunteer release manager for that, or it won't happen. Most o

[Numpy-discussion] Combining record arrays

2007-07-23 Thread Sean Davis
I am a relatively new numpy user, so sorry for the relatively simple questions. I hope someone can help clarify a couple of things for me. 1) What is the difference between recarrays and arrays created using N.rec.array? If they are different, why use one over the other? 2) How can I add col

Re: [Numpy-discussion] getting numPy happening for sciPy

2007-07-23 Thread Steven H. Rogers
Tim Mortimer wrote: > Anyway, I wanted to "beef up" my python arsenal with some of the SciPY > stuff - initially a wider & more solid range of random number > generators, histograms & statistical packages etc. > > So it is with some regret that i see at present that it is not possible > to build

Re: [Numpy-discussion] getting numPy happening for sciPy

2007-07-23 Thread Stefan van der Walt
Hi Tim On Mon, Jul 23, 2007 at 08:20:24PM +0930, Tim Mortimer wrote: > I am not an experienced programmer, so the idea of building NumPy from > the "bleeding edge" repository is beyond my capability, as there appears > to be no specific instructions for how to do this (that don't assume you > h

[Numpy-discussion] getting numPy happening for sciPy

2007-07-23 Thread Tim Mortimer
Hello There, I'm pretty new to Python, picking it up recently in order to begin to experiment with Csound / Python interconnectivity (generating scores, GUI elements, using Vpython to model mechanical "systems"... that sort of thing...) Have so far written about 500 lines of Python code (over

Re: [Numpy-discussion] Pickle, pytables, and sqlite - loading and saving recarray's

2007-07-23 Thread Ivan Vilata i Balaguer
Vincent Nijs (el 2007-07-22 a les 10:21:18 -0500) va dir:: > [...] > I would assume the NULL's could be treated as missing values (?) Don't know > about the different types in one column however. Maybe a masked array would do the trick, with NULL values masked out. :: Ivan Vilata i Bala

Re: [Numpy-discussion] tofile speed

2007-07-23 Thread Sebastian Haase
Just a guess out of my hat: there might be a buffer class in the standard python library... I'm thinking of a class that implements file-I/O and collects input up to a maximum buffer size before it copies the same byte stream to it's output. Since I/O is more efficient if larger chunks are written

[Numpy-discussion] tofile speed

2007-07-23 Thread Lars Friedrich
Hello everyone, I am using array.tofile successfully for a data-acqusition-streaming application. I mean that I do the following: for a long time: temp = dataAcquisisionDevice.getData() temp.tofile(myDataFile) temp is a numpy array that is used for storing the data temporarily.