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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
>
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(
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?
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
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/
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
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
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
>
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
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
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
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
> 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
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
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
35 matches
Mail list logo