[Numpy-discussion] Does Numpy support CGI-scripting?`

2009-12-13 Thread yogesh karpate
Does Numpy Support CGI scripting? DO scipy and matplotlib also support? Regards ~ymk ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Import error in builds of 7726

2009-12-13 Thread David Cournapeau
On Mon, Dec 14, 2009 at 5:29 AM, Chris wrote: > Chris gmail.com> writes: > >> Here it is: >> >> http://files.me.com/fonnesbeck/6ezhy5 >> > > Sorry, that link should be: > > http://files.me.com/fonnesbeck/qv8o59 Ok, so the undefined functions all indicate that the most recently implemented ones a

Re: [Numpy-discussion] structured array from ordinary array

2009-12-13 Thread Pierre GM
On Dec 13, 2009, at 8:54 PM, Ernest Adrogué wrote: > Hi, > > How does one generate a structured array from a normal > array? > > I use the 'view' method, but this way I get a superfluous > dimension that I do not want. Example: > > In [619]: a = np.array([[1,2,3],[1,2,3],[1,2,4]],int) > > In [6

Re: [Numpy-discussion] Problem with set_fill_value for masked structured array

2009-12-13 Thread Pierre GM
On Dec 13, 2009, at 6:18 PM, Thomas Robitaille wrote: > Hi, > > The following code doesn't seem to work: > > import numpy.ma as ma > > t = ma.array(zip([1,2,3],[4,5,6]),dtype=[('a',int),('b',int)]) > print repr(t['a']) > t['a'].set_fill_value(10) > print repr(t['a']) > > As the output is > > m

Re: [Numpy-discussion] indices of values contained in a list

2009-12-13 Thread Ernest Adrogué
12/12/09 @ 08:16 (-0800), thus spake Keith Goodman: > If a and b are as short as in your example, which I doubt, here's a faster > way: > > >> timeit np.nonzero(reduce(np.logical_or, [a == i for i in b])) > 10 loops, best of 3: 14 µs per loop > >> timeit [i for i, z in enumerate(a) if z in b]

[Numpy-discussion] structured array from ordinary array

2009-12-13 Thread Ernest Adrogué
Hi, How does one generate a structured array from a normal array? I use the 'view' method, but this way I get a superfluous dimension that I do not want. Example: In [619]: a = np.array([[1,2,3],[1,2,3],[1,2,4]],int) In [620]: struct = np.dtype([('a',int),('b',int),('c',int)]) In [621]: a.view

Re: [Numpy-discussion] Import error in builds of 7726

2009-12-13 Thread Chris
Chris gmail.com> writes: > Here it is: > > http://files.me.com/fonnesbeck/6ezhy5 > Sorry, that link should be: http://files.me.com/fonnesbeck/qv8o59 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinf

[Numpy-discussion] [Ann] EuroScipy 2010

2009-12-13 Thread Gael Varoquaux
== Announcing EuroScipy 2010 == --- The 3rd European meeting on Python in Science --- **Paris, Ecole Normale Supérieure, July 8-11 2010** We are happy t

[Numpy-discussion] Problem with set_fill_value for masked structured array

2009-12-13 Thread Thomas Robitaille
Hi, The following code doesn't seem to work: import numpy.ma as ma t = ma.array(zip([1,2,3],[4,5,6]),dtype=[('a',int),('b',int)]) print repr(t['a']) t['a'].set_fill_value(10) print repr(t['a']) As the output is masked_array(data = [1 2 3], mask = [False False False], fill

Re: [Numpy-discussion] Import error in builds of 7726

2009-12-13 Thread Chris
David Cournapeau gmail.com> writes: > could you show the output from nm on umath.so, to check what > symbols are missing. Maybe seeing the whole list would bring > something. Here it is: http://files.me.com/fonnesbeck/6ezhy5 The symbol in question is in there, but I see that it does not have

Re: [Numpy-discussion] Question on timeseries, for financial application

2009-12-13 Thread Wes McKinney
On Sun, Dec 13, 2009 at 9:27 AM, Robert Ferrell wrote: > > On Dec 13, 2009, at 7:07 AM, josef.p...@gmail.com wrote: > >> On Sun, Dec 13, 2009 at 3:31 AM, Pierre GM >> wrote: >>> On Dec 13, 2009, at 12:11 AM, Robert Ferrell wrote: Have you considered creating a TimeSeries for each data series

[Numpy-discussion] A discrepancy between NumPy documentation and recomendations for beginers

2009-12-13 Thread iason
Here http://www.scipy.org/NumPy_for_Matlab_Users a recommendation to use scipy.integrate.ode(...) with parameters "method='bdf', order=15" instead of the ode15s function (from Matlab) is given. But from the documentation for the scipy.integrate.ode(...) one can find out that the accuracy order

[Numpy-discussion] ma feature request (log2)

2009-12-13 Thread Robin
Hi, Could we have a ma aware numpy.ma.log2 please, similar to np.ma.log and np.ma.log10? I think it should be as simple as the patch below but perhaps I've missed something: Thanks, Robin --- core.py.orig2009-12-13 15:14:14.0 + +++ core.py 2009-12-13 15:14:53.0

Re: [Numpy-discussion] Question on timeseries, for financial application

2009-12-13 Thread Robert Ferrell
On Dec 13, 2009, at 7:07 AM, josef.p...@gmail.com wrote: > On Sun, Dec 13, 2009 at 3:31 AM, Pierre GM > wrote: >> On Dec 13, 2009, at 12:11 AM, Robert Ferrell wrote: >>> Have you considered creating a TimeSeries for each data series, and >>> then putting them all together in a dict, keyed by s

Re: [Numpy-discussion] Question on timeseries, for financial application

2009-12-13 Thread Robert Ferrell
On Dec 13, 2009, at 1:31 AM, Pierre GM wrote: > On Dec 13, 2009, at 12:11 AM, Robert Ferrell wrote: >> Have you considered creating a TimeSeries for each data series, and >> then putting them all together in a dict, keyed by symbol? > > That's an idea > >> One disadvantage of one big monster nump

Re: [Numpy-discussion] Question on timeseries, for financial application

2009-12-13 Thread josef . pktd
On Sun, Dec 13, 2009 at 3:31 AM, Pierre GM wrote: > On Dec 13, 2009, at 12:11 AM, Robert Ferrell wrote: >> Have you considered creating a TimeSeries for each data series, and >> then putting them all together in a dict, keyed by symbol? > > That's an idea As far as I understand, that's what panda

Re: [Numpy-discussion] Slicing slower than matrix multiplication?

2009-12-13 Thread Jasper van de Gronde
Bruce Southey wrote: > Really I would suggest asking the list for the real problem because it > is often amazing what solutions have been given. So far this is the fastest code I've got: import numpy as np nmax = 100 def mi

Re: [Numpy-discussion] Import error in builds of 7726

2009-12-13 Thread David Cournapeau
On Sun, Dec 13, 2009 at 12:55 PM, Robert Kern wrote: >> I don't see any build error on this log ? > > See earlier in the thread. The error occurs at runtime: Right. Chris, could you show the output from nm on umath.so, to check what symbols are missing. Maybe seeing the whole list would bring s

Re: [Numpy-discussion] Question on timeseries, for financial application

2009-12-13 Thread Pierre GM
On Dec 13, 2009, at 12:11 AM, Robert Ferrell wrote: > Have you considered creating a TimeSeries for each data series, and > then putting them all together in a dict, keyed by symbol? That's an idea > One disadvantage of one big monster numpy array for all the series is > that not all series m