Re: [Numpy-discussion] [SciPy-user] What it the best way to install on a Mac?

2007-01-31 Thread Fernando Perez
On 1/31/07, Fernando Perez <[EMAIL PROTECTED]> wrote: > On 1/31/07, Sanjiv Das <[EMAIL PROTECTED]> wrote: > > OK - will give that a shot as well. Its a good suggestion! > > cheers And I should add: thanks! Recent discussions on this list indicate there's a real need for this information, so a com

Re: [Numpy-discussion] [SciPy-user] What it the best way to install on a Mac?

2007-01-31 Thread Fernando Perez
On 1/31/07, Sanjiv Das <[EMAIL PROTECTED]> wrote: > OK - will give that a shot as well. Its a good suggestion! > cheers Great. And it looks like the bulk of that work has already been done for you, as I found out today thanks to the good and trusty Google Alerts service: http://mohinish.blogspot

Re: [Numpy-discussion] usage of __del__ in python classes

2007-01-31 Thread David Cournapeau
Sebastian Haase wrote: > Hi, > Before I start I want to admit that I don't understand much about > this. I just saw that the memmap class defines __del__ and that I had > problems in the past when I added a 'def __del__' to a class of mine. > So here is a quote, I would like to know if this is "sta

[Numpy-discussion] usage of __del__ in python classes

2007-01-31 Thread Sebastian Haase
Hi, Before I start I want to admit that I don't understand much about this. I just saw that the memmap class defines __del__ and that I had problems in the past when I added a 'def __del__' to a class of mine. So here is a quote, I would like to know if this is "standard knowledge" on this list or

Re: [Numpy-discussion] query to array

2007-01-31 Thread Tom Denniston
Ok, I don't have the pyodbc so I can't test this example but it would look something like this assuming the date was a 10 char string (numpy doesn't support mx.DateTimes natively, much to my chagrin) and the Close was a float: > import pyodbc > import numpy as np > > connection = pyodbc.connect('D

Re: [Numpy-discussion] query to array

2007-01-31 Thread Keith Goodman
On 1/31/07, Tom Denniston <[EMAIL PROTECTED]> wrote: > i would do something like the following. I don't have your odbc > library so I mocked it up with a fake iterator called "it". This > example would be for a two column result where the first is an int and > the second a string. Note it create

Re: [Numpy-discussion] query to array

2007-01-31 Thread Tom Denniston
i would do something like the following. I don't have your odbc library so I mocked it up with a fake iterator called "it". This example would be for a two column result where the first is an int and the second a string. Note it creates a recarray which you can have match you database column nam

Re: [Numpy-discussion] query to array

2007-01-31 Thread Keith Goodman
On 1/31/07, BBands <[EMAIL PROTECTED]> wrote: > import pyodbc > import numpy as np > > connection = pyodbc.connect('DSN=DSNname') > cursor = connection.cursor() > symbol = 'ibm' > request = "select to_days(Date), Close from price where symbol = '" + > symbol + "' and date > '2006-01-01'" > for row

[Numpy-discussion] query to array

2007-01-31 Thread BBands
Good afternoon, The following works: import pyodbc import numpy as np connection = pyodbc.connect('DSN=DSNname') cursor = connection.cursor() symbol = 'ibm' request = "select to_days(Date), Close from price where symbol = '" + symbol + "' and date > '2006-01-01'" for row in cursor.execute(reques

Re: [Numpy-discussion] Cutting 1.0.2 release

2007-01-31 Thread Gary Ruben
Thanks Fernando, Good idea. I'll apply your suggestion. Gary Fernando Perez wrote: > On 1/31/07, Gary Ruben <[EMAIL PROTECTED]> wrote: >> Actually, I just realised; it's not an ipython problem. I think it's a >> matplotlib problem. I'll report it there. > > Until mpl drops support for the compat

[Numpy-discussion] numpy.scipy.org refers to sourceforge mailing list

2007-01-31 Thread Sebastian Haase
Hi, On the numpy page: http://numpy.scipy.org/ the is this text: """ Questions? Ask them at the numpy-discussion@lists.sourceforge.net mailing list """ Is sourceforge.net still used for numpy ? Also I think it should point to the list sign-up-page since only members are allowed to posts to the

Re: [Numpy-discussion] memmap close() and flush()

2007-01-31 Thread Sebastian Haase
On 1/31/07, Fernando Perez <[EMAIL PROTECTED]> wrote: > On 1/31/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > Fernando Perez wrote: > > > I don't know. If you have other things pointing to it, should you > > really close it? > > Well, it's like a file: you can close it because you've decided

Re: [Numpy-discussion] memmap close() and flush()

2007-01-31 Thread Sebastian Haase
On 1/31/07, Fernando Perez <[EMAIL PROTECTED]> wrote: > On 1/31/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > Fernando Perez wrote: > > > I don't know. If you have other things pointing to it, should you > > really close it? > > Well, it's like a file: you can close it because you've decided

Re: [Numpy-discussion] pyrex c_numpy.pyx problem

2007-01-31 Thread Robert Kern
Stefan van der Walt wrote: > Any advice/suggestions? I've just committed a fix. I changed the [NPY_MAXDIMS] arrays to pointers (Pyrex doesn't care, really) and changed the flatiter *items to void **items. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enig

Re: [Numpy-discussion] memmap close() and flush()

2007-01-31 Thread Fernando Perez
On 1/31/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: > Fernando Perez wrote: > I don't know. If you have other things pointing to it, should you > really close it? Well, it's like a file: you can close it because you've decided it's time to close it, and I think it's better that other referenc

Re: [Numpy-discussion] memmap close() and flush()

2007-01-31 Thread Travis Oliphant
Fernando Perez wrote: >On 1/31/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > >>Sebastian Haase wrote: >> >> >>>Hi! >>>Do numpy memmap have a way of explicitly >>>flushing data to disk >>>and/or >>>closing the memmap. >>> >>> >>> >>There is a sync method that performs the flush.

Re: [Numpy-discussion] Requests for NumPy Ports?

2007-01-31 Thread Travis Oliphant
Christopher Barker wrote: >Travis Oliphant wrote: > > >>Most of these are probably the gtk-python extension which can use >>Numeric >> >> > >This strikes me as an excellent argument for including an n-d array in >the Python standard lib. > > It is absolutely a good argument. If Python

Re: [Numpy-discussion] memmap close() and flush()

2007-01-31 Thread Fernando Perez
On 1/31/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: > Sebastian Haase wrote: > > Hi! > > Do numpy memmap have a way of explicitly > > flushing data to disk > > and/or > > closing the memmap. > > > There is a sync method that performs the flush. To close the memmap, > delete it. > > More detail

Re: [Numpy-discussion] Requests for NumPy Ports?

2007-01-31 Thread Christopher Barker
Travis Oliphant wrote: > Most of these are probably the gtk-python extension which can use > Numeric This strikes me as an excellent argument for including an n-d array in the Python standard lib. I can't imagine gtk-python is doing a lot of scientific number crunching -- it's probably using a

Re: [Numpy-discussion] Cutting 1.0.2 release

2007-01-31 Thread Fernando Perez
On 1/31/07, Gary Ruben <[EMAIL PROTECTED]> wrote: > Actually, I just realised; it's not an ipython problem. I think it's a > matplotlib problem. I'll report it there. Until mpl drops support for the compatibility layers, you may want to set up a simple pylab profile. In ~/.ipython make a file cal

Re: [Numpy-discussion] Requests for NumPy Ports?

2007-01-31 Thread Travis Oliphant
Keith Goodman wrote: >On 1/30/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > >>I'm trying to help out the conversion to NumPy by offering patches to >>various third-party packages that have used Numeric in the past. >> >>Does anybody here have requests for which packages they would like to >

Re: [Numpy-discussion] Conversion of Numeric arrays from/to numpy arrays

2007-01-31 Thread Christopher Barker
William Hughes wrote: > Hi: > Is there a easy and efficient way to convert between > Numeric and numpy arrays? sure is: Numeric.asarray() numpy.asarray() Could it be any easier? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(

Re: [Numpy-discussion] Requests for NumPy Ports?

2007-01-31 Thread Keith Goodman
On 1/30/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > I'm trying to help out the conversion to NumPy by offering patches to > various third-party packages that have used Numeric in the past. > > Does anybody here have requests for which packages they would like to > see converted to use NumPy?

Re: [Numpy-discussion] Patch for RPy to use NumPy uploaded to www.scipy.org

2007-01-31 Thread Christopher Barker
Tim Churches wrote: > Yes, except that we have quite a lot of code in fielded applications > which is written with Numeric, and which also uses RPy. We currently > have no funds to do the Numeric to NumPy port in our code. If RPy > dropped support for Numeric, we would be forced to use increasing o

[Numpy-discussion] Conversion of Numeric arrays from/to numpy arrays

2007-01-31 Thread William Hughes
Hi: Is there a easy and efficient way to convert between Numeric and numpy arrays? - William Hughes ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/

Re: [Numpy-discussion] Requests for NumPy Ports?

2007-01-31 Thread Christopher Barker
Travis Oliphant wrote: > I'm trying to help out the conversion to NumPy by offering patches to > various third-party packages that have used Numeric in the past. Travis, you are amazing! Thanks for doing this. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOA

Re: [Numpy-discussion] Requests for NumPy Ports?

2007-01-31 Thread Jouni K . Seppänen
Travis Oliphant <[EMAIL PROTECTED]> writes: > Does anybody here have requests for which packages they would like to > see converted to use NumPy? The mixture-modeling package PyMix uses numarray: http://algorithmics.molgen.mpg.de/pymix.html -- Jouni K. Seppänen http://www.iki.fi/jks

Re: [Numpy-discussion] Requests for NumPy Ports?

2007-01-31 Thread Bruce Southey
Hi, BioPython (http://biopython.org) still uses Numeric: http://biopython.org/wiki/Download Last year there was some discussion on converting to NumPy. Regards Bruce On 1/30/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: > > I'm trying to help out the conversion to NumPy by offering patches to >

[Numpy-discussion] Release 0.6.1 of pyaudio, renamed pyaudiolab

2007-01-31 Thread David Cournapeau
Hi There, A few months ago, I posted the first release of pyaudio, a python module to give numpy/scipy environment audio file IO capabilities (ala matlab wavread and co). I recently took time to update it significantly, and as several people showed interest in pyaudio recently, I thought t

Re: [Numpy-discussion] Cutting 1.0.2 release

2007-01-31 Thread Gary Ruben
Actually, I just realised; it's not an ipython problem. I think it's a matplotlib problem. I'll report it there. Gary R. Steve Lianoglou wrote: >> Thanks Alan & Chris, >> >> My apologies. I was trying ones(), zeros() and empty() in ipython >> 0.7.2 >> with the -pylab option and getting the wro

[Numpy-discussion] pyrex c_numpy.pyx problem

2007-01-31 Thread Stefan van der Walt
Hi, Pyrex 0.9.5.1 doesn't like the following snippet out of c_numpyx.pyx: ctypedef extern class numpy.broadcast [object PyArrayMultiIterObject]: cdef int numiter cdef npy_intp size, index cdef int nd cdef npy_intp dimensions[NPY_MAXDIMS] cdef flatiter i

Re: [Numpy-discussion] Requests for NumPy Ports?

2007-01-31 Thread Gary Ruben
Hi Travis, The vpython project was attempting to migrate to numpy and may have achieved it, but I think there may have been some outstanding questions. I'm not sure of the status, but, since you ask, I'd like to see vpython converted. Gary R. Travis Oliphant wrote: > I'm trying to help out th

Re: [Numpy-discussion] Cutting 1.0.2 release

2007-01-31 Thread Steve Lianoglou
> Thanks Alan & Chris, > > My apologies. I was trying ones(), zeros() and empty() in ipython > 0.7.2 > with the -pylab option and getting the wrong functions. On my system, > ipython -pylab imports the namespace of the oldnumeric wrapper > versions > of ones(), zeros() and empty() and I had ass

Re: [Numpy-discussion] Cutting 1.0.2 release

2007-01-31 Thread Gary Ruben
Thanks Alan & Chris, My apologies. I was trying ones(), zeros() and empty() in ipython 0.7.2 with the -pylab option and getting the wrong functions. On my system, ipython -pylab imports the namespace of the oldnumeric wrapper versions of ones(), zeros() and empty() and I had assumed these were

[Numpy-discussion] Subclassing ndarray in Pyrex

2007-01-31 Thread Pierre GM
I'm still trying to subclass ndarray in Pyrex, without much success so far. I started to follow Francesc's suggestion (http://projects.scipy.org/pipermail/numpy-discussion/2007-January/025644.html), but that doesn't fit what I need: the myarray class Francesc introduced is just an object, not