Re: [Numpy-discussion] multiprocessing shared arrays and numpy

2010-03-03 Thread Nadav Horesh
There is a work by Sturla Molden: look for multiprocessing-tutorial.pdf and sharedmem-feb13-2009.zip. The tutorial includes what is dropped in the cookbook page. I am into the same issue and going to test it today. Nadav On Wed, 2010-03-03 at 15:31 +0100, Jesper Larsen wrote: > Hi people, > >

Re: [Numpy-discussion] dtype for a single char

2010-03-03 Thread David Warde-Farley
On 3-Mar-10, at 4:56 PM, Robert Kern wrote: > Other types have a sensible default determined by the platform. Yes, and the 'S0' type isn't terribly sensible, if only because of this issue: http://projects.scipy.org/numpy/ticket/1239 David __

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-03-03 Thread David Cournapeau
Patrick Marsh wrote: > On Wed, Mar 3, 2010 at 8:48 AM, David Cournapeau > wrote: > > That's a bug in the pavement script - on windows 7, some env variables > are necessary to run python correctly, which were not necessary for > windows < 7. I will fix this.

Re: [Numpy-discussion] Recommendation on reference software [Re: setting decimal accuracy ... ]

2010-03-03 Thread Robert Kern
On Wed, Mar 3, 2010 at 16:26, Marco Tuckner wrote: >> I suspect a different algorithm, you can tell timeseries.convert how you >> want it to interpolate -- who knows what excel is doing. > does this mean that you are questioning Excel or more neutrally > Spreadsheet programs? We are not questioni

Re: [Numpy-discussion] setting decimal accuracy in array operations (scikits.timeseries)

2010-03-03 Thread Robert Kern
On Wed, Mar 3, 2010 at 16:23, Marco Tuckner wrote: > Thanks to all who answered. > This is really helpful! > >>> If you are still seeing actual calculation differences, we will >>> need to see a complete, self-contained example that demonstrates >>> the difference. >> >> To add a bit more detail -

[Numpy-discussion] Recommendation on reference software [Re: setting decimal accuracy ... ]

2010-03-03 Thread Marco Tuckner
> I suspect a different algorithm, you can tell timeseries.convert how you > want it to interpolate -- who knows what excel is doing. does this mean that you are questioning Excel or more neutrally Spreadsheet programs? What software would you recommend as reference to test Python packages agains

Re: [Numpy-discussion] setting decimal accuracy in array operations (scikits.timeseries)

2010-03-03 Thread Marco Tuckner
Thanks to all who answered. This is really helpful! >> If you are still seeing actual calculation differences, we will >> need to see a complete, self-contained example that demonstrates >> the difference. > > To add a bit more detail -- unless you are explicitly specifying > single precision flo

Re: [Numpy-discussion] dtype for a single char

2010-03-03 Thread Robert Kern
On Wed, Mar 3, 2010 at 15:14, sam tygier wrote: > Hello > > today i was caught out by trying to use 'a' as a dtype for a single > character. a simple example would be: > array([('a',1),('b',2),('c',3)], dtype=[("letter", "a"), ("number", "i")]) > array([('', 1), ('', 2), ('', 3)], >      dty

[Numpy-discussion] dtype for a single char

2010-03-03 Thread sam tygier
Hello today i was caught out by trying to use 'a' as a dtype for a single character. a simple example would be: >>> array([('a',1),('b',2),('c',3)], dtype=[("letter", "a"), ("number", "i")]) array([('', 1), ('', 2), ('', 3)], dtype=[('letter', '|S0'), ('number', '>> array([('a',1),('b',2)

Re: [Numpy-discussion] how to efficiently build an array of x, y, z points

2010-03-03 Thread Christopher Barker
Bruce Southey wrote: > Christopher Barker provided some code last last year on appending > ndarrays eg: > http://mail.scipy.org/pipermail/numpy-discussion/2009-November/046634.html yup, I"d love someone else to pick that up and test/improve it. Anyway, that code only handles 1-d arrays, though t

Re: [Numpy-discussion] setting decimal accuracy in array operations (scikits.timeseries)

2010-03-03 Thread Christopher Barker
Robert Kern wrote: > On Wed, Mar 3, 2010 at 14:09, Marco Tuckner >> In Python the numbers show: >> 12. >> >> whereas in Excel I see: >> 12.8 > If you are still seeing actual calculation differences, we will need > to see a complete, self-contained example that demonstrates the

Re: [Numpy-discussion] setting decimal accuracy in array operations (scikits.timeseries)

2010-03-03 Thread Pauli Virtanen
ke, 2010-03-03 kello 21:09 +0100, Marco Tuckner kirjoitti: > am using the scikit.timeseries to convert a hourly timeseries to a lower > frequency unsing the appropriate function [1]. > > When I compare the result to the values calculated with a Pivot table in > Excel there is a difference in the v

Re: [Numpy-discussion] setting decimal accuracy in array operations (scikits.timeseries)

2010-03-03 Thread Robert Kern
On Wed, Mar 3, 2010 at 14:09, Marco Tuckner wrote: > Hello, > am using the scikit.timeseries to convert a hourly timeseries to a lower > frequency unsing the appropriate function [1]. > > When I compare the result to the values calculated with a Pivot table in > Excel there is a difference in the

[Numpy-discussion] setting decimal accuracy in array operations (scikits.timeseries)

2010-03-03 Thread Marco Tuckner
Hello, am using the scikit.timeseries to convert a hourly timeseries to a lower frequency unsing the appropriate function [1]. When I compare the result to the values calculated with a Pivot table in Excel there is a difference in the values which reaches quite high values in the total sum of all

Re: [Numpy-discussion] how to efficiently build an array of x, y, z points

2010-03-03 Thread Brennan Williams
Bruce Southey wrote: > On 03/02/2010 09:47 PM, David Goldsmith wrote: >> On Tue, Mar 2, 2010 at 6:59 PM, Brennan Williams >> > > wrote: >> >> David Goldsmith wrote: >> > >> > On Tue, Mar 2, 2010 at 6:29 PM, Brennan Williams >> > >

Re: [Numpy-discussion] how to work with numpy.int8 in c

2010-03-03 Thread James Bergstra
Thanks all for your help, I think I'm on my way again. The catch in the first place was not being confident that a PyArray_Scalar was the thing I needed. I grep'd the code for uint8, int8 and so on and could not find their definitions. On first reading I overlooked the PyArray_Scalar link in thi

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-03-03 Thread Christoph Gohlke
Numpy 1.4.0 svn rev 8270 builds (with setup.py) and tests OK on Windows 7 using Python 2.6.4. The only test failure is test_special_values (test_umath_complex.TestClog). - Christoph On 3/3/2010 7:22 AM, Patrick Marsh wrote: > On Wed, Mar 3, 2010 at 8:48 AM, David Cournapeau

Re: [Numpy-discussion] multiprocessing shared arrays and numpy

2010-03-03 Thread Francesc Alted
A Wednesday 03 March 2010 15:31:29 Jesper Larsen escrigué: > Hi people, > > I was wondering about the status of using the standard library > multiprocessing module with numpy. I found a cookbook example last > updated one year ago which states that: > > "This page was obsolete as multiprocessing'

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-03-03 Thread Patrick Marsh
On Wed, Mar 3, 2010 at 8:48 AM, David Cournapeau wrote: > On Wed, Mar 3, 2010 at 11:34 PM, Patrick Marsh > wrote: > > > Okay, I'm about out of ideas. Hopefully someone on here has an idea as > to > > what might be going on. > > 1. I am still unable to build the windows superpack using pavement

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-03-03 Thread Patrick Marsh
On Wed, Mar 3, 2010 at 8:48 AM, Ralf Gommers wrote: > > > On Wed, Mar 3, 2010 at 10:34 PM, Patrick Marsh > wrote: > >> 1. I am still unable to build the windows superpack using pavement.py, >> even after making sure I have all the necessary dependencies. However, the >> good news is that paveme

Re: [Numpy-discussion] how to efficiently build an array of x, y, z points

2010-03-03 Thread Bruce Southey
On 03/02/2010 09:47 PM, David Goldsmith wrote: On Tue, Mar 2, 2010 at 6:59 PM, Brennan Williams > wrote: David Goldsmith wrote: > > On Tue, Mar 2, 2010 at 6:29 PM, Brennan Williams > mailto:brennan.willi...@visualreservoir.com> >

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-03-03 Thread Ralf Gommers
On Wed, Mar 3, 2010 at 10:34 PM, Patrick Marsh wrote: > 1. I am still unable to build the windows superpack using pavement.py, > even after making sure I have all the necessary dependencies. However, the > good news is that pavement.py now recognizes where the Atlas binaries David > provided are

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-03-03 Thread David Cournapeau
On Wed, Mar 3, 2010 at 11:34 PM, Patrick Marsh wrote: > Okay, I'm about out of ideas.  Hopefully someone on here has an idea as to > what might be going on. > 1.  I am still unable to build the windows superpack using pavement.py, even > after making sure I have all the necessary dependencies.  H

Re: [Numpy-discussion] Building Numpy Windows Superpack

2010-03-03 Thread Patrick Marsh
Greetings I sent this last night but the buildout.txt file was too large so my email was held pending moderation. When I got up this morning I realized that there was a good chance that the moderation queue is overwhelmed and not looked at much so I decided to post links to the out files and resu

[Numpy-discussion] multiprocessing shared arrays and numpy

2010-03-03 Thread Jesper Larsen
Hi people, I was wondering about the status of using the standard library multiprocessing module with numpy. I found a cookbook example last updated one year ago which states that: "This page was obsolete as multiprocessing's internals have changed. More information will come shortly; a link to t

Re: [Numpy-discussion] how to work with numpy.int8 in c

2010-03-03 Thread David Cournapeau
Francesc Alted wrote: > A Wednesday 03 March 2010 02:58:31 David Cournapeau escrigué: >>> PyObject *ret; >>> PyArray_Descr *typecode; >>> >>> >>> typecode = PyArray_DescrFromType(PyArray_UINT8); >>> ret = PyArray_Scalar(NULL, typecode, NULL); >>> Py_DECREF(typecode); >> Sorry, this is wrong, t

Re: [Numpy-discussion] how to work with numpy.int8 in c

2010-03-03 Thread Francesc Alted
A Wednesday 03 March 2010 02:58:31 David Cournapeau escrigué: > > PyObject *ret; > > PyArray_Descr *typecode; > > > > > > typecode = PyArray_DescrFromType(PyArray_UINT8); > > ret = PyArray_Scalar(NULL, typecode, NULL); > > Py_DECREF(typecode); > > Sorry, this is wrong, this does not work on m