[Numpy-discussion] Accessing fields of the object stored in numpy array

2010-02-17 Thread Vishal Rana
Hi, I have a numpy arrays with datetime objects as: a = np.array([dt.datetime(2010, 2, 17), dt.datetime(2010, 2, 16), dt.datetime(2010, 2, 15)]) b = np.array([dt.datetime(2010, 2, 14), dt.datetime(2010, 2, 13), dt.datetime(2010, 2, 12)]) I want doing a-b should give me days difference as numpy a

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-17 Thread Scott Sinclair
>On 18 February 2010 05:30, Wayne Watson wrote: > >> On 2/16/2010 10:01 PM, Scott Sinclair wrote: >> >> Wayne - The DeprecationWarnings are being raised by SciPy, not by your >> code. You probably don't have a recent version of SciPy installed. The >> most recent release of SciPy is 0.7.1 and work

Re: [Numpy-discussion] Unable to install numpy-1.3.0 on WinXP (without Administrative rights)

2010-02-17 Thread Touisteur EmporteUneVache
On 2/18/2010 at 15:04, Christoph Gohlke wrote: > On 2/17/2010 7:30 PM, David Cournapeau wrote: >> On Thu, Feb 18, 2010 at 8:24 AM, Touisteur EmporteUneVache >> wrote: >>> Hi, >>> >>> I'm trying to install numpy on a WinXP system, on which I have no >>> administrative rights. >> >> I think it is

Re: [Numpy-discussion] Unable to install numpy-1.3.0 on WinXP (without Administrative rights)

2010-02-17 Thread Christoph Gohlke
On 2/17/2010 7:30 PM, David Cournapeau wrote: > On Thu, Feb 18, 2010 at 8:24 AM, Touisteur EmporteUneVache > wrote: >> Hi, >> >> I'm trying to install numpy on a WinXP system, on which I have no >> administrative rights. > > I think it is not possible to install NumPy for python 2.6 if you > don'

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-17 Thread Wayne Watson
On 2/16/2010 10:01 PM, Scott Sinclair wrote: >> On 17 February 2010 07:25, wrote: >> On Wed, Feb 17, 2010 at 12:10 AM, Wayne Watson >> wrote: >> >>> Hi, I'm working on a 1800+ line program that uses tkinter. Here are the >>> messages I started getting recently. (I finally figured out how

Re: [Numpy-discussion] Unable to install numpy-1.3.0 on WinXP (without Administrative rights)

2010-02-17 Thread David Cournapeau
On Thu, Feb 18, 2010 at 8:24 AM, Touisteur EmporteUneVache wrote: > Hi, > > I'm trying to install numpy on a WinXP system, on which I have no > administrative rights. I think it is not possible to install NumPy for python 2.6 if you don't have admin priviledges. I believe the root of the problem

Re: [Numpy-discussion] Updating Packages in 2.5 (win/numpy) and Related Matters

2010-02-17 Thread Wayne Watson
I don't think I'm on the current version. Does it make sense to move ahead? Is there a way to suppress the messages? On 2/16/2010 9:25 PM, josef.p...@gmail.com wrote: > On Wed, Feb 17, 2010 at 12:10 AM, Wayne Watson > wrote: > >> Hi, I'm working on a 1800+ line program that uses tkinter. Her

[Numpy-discussion] Unable to install numpy-1.3.0 on WinXP (without Administrative rights)

2010-02-17 Thread Touisteur EmporteUneVache
Hi, I'm trying to install numpy on a WinXP system, on which I have no administrative rights. Installation of Python-2.6 went OK, but the windows installer that I downloaded on sourceforge for numpy (numpy-1.3.0-win32 -superpack-python2.6.exe) gives me an error pop-up window "Executing numpy insta

Re: [Numpy-discussion] f2py: variable number of arguments of variable lengths

2010-02-17 Thread Fabrice Silva
Le mercredi 17 février 2010 à 16:21 -0600, Robert Kern a écrit : > > What about the next step: a variable number of arguments that are > > 2d-arrays with different shapes ? > > - nm: number of arrays > - ncols : a 1d-array (dimension nm) containing the number of columns > in each array > - nrows :

Re: [Numpy-discussion] f2py: variable number of arguments of variable lengths

2010-02-17 Thread Robert Kern
On Wed, Feb 17, 2010 at 15:55, Fabrice Silva wrote: > Le mercredi 17 février 2010 à 15:43 -0600, Robert Kern a écrit : >> On Wed, Feb 17, 2010 at 15:29, Fabrice Silva wrote: >> > I previously coded a fortran function that needs a variable number of >> > scalar arguments. This number is not known

Re: [Numpy-discussion] f2py: variable number of arguments of variable lengths

2010-02-17 Thread Fabrice Silva
Le mercredi 17 février 2010 à 15:43 -0600, Robert Kern a écrit : > On Wed, Feb 17, 2010 at 15:29, Fabrice Silva wrote: > > I previously coded a fortran function that needs a variable number of > > scalar arguments. This number is not known at compile time, but at call > > time. So I used to pass t

Re: [Numpy-discussion] f2py: variable number of arguments of variable lengths

2010-02-17 Thread Robert Kern
On Wed, Feb 17, 2010 at 15:29, Fabrice Silva wrote: > I previously coded a fortran function that needs a variable number of > scalar arguments. This number is not known at compile time, but at call > time. So I used to pass them within a vector, passing also the length of > this vector > >        

[Numpy-discussion] f2py: variable number of arguments of variable lengths

2010-02-17 Thread Fabrice Silva
I previously coded a fortran function that needs a variable number of scalar arguments. This number is not known at compile time, but at call time. So I used to pass them within a vector, passing also the length of this vector subroutine systeme(inc,t,nm,Dinc,sn) C C

[Numpy-discussion] Sun Studio Compilers on Linux / atan2 regression

2010-02-17 Thread Christian Marquardt
Hi, when compiling numpy-1.40 with the Sun Studio Compilers (v12 Update 1) on Linux (an OpenSUSE 11.1 in my case), about 30 tests in numpy.test() fail; all failures are related to the arctan2 function. I've found that in r7732 a patch was applied to trunk/numpy/core/src/private/npy_config.h i

Re: [Numpy-discussion] 1.4 still the candidate for easy_install

2010-02-17 Thread Jarrod Millman
Good catch. I just removed the 1.4.0 tarball from PyPI. Thanks, -- Jarrod Millman Helen Wills Neuroscience Institute 10 Giannini Hall, UC Berkeley http://cirl.berkeley.edu/ ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy

[Numpy-discussion] 1.4 still the candidate for easy_install

2010-02-17 Thread David Warde-Farley
Hi, I'm pretty sure this is unintentional but I tried easy_install numpy the other day and it pulled down a 1.4 tarball from PyPI. David ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussi

Re: [Numpy-discussion] Unit Tests failing daily for 2 months

2010-02-17 Thread Charles R Harris
On Wed, Feb 17, 2010 at 9:07 AM, Christopher Hanley wrote: > > > > I don't see these here. What architecture/compiler/os ? > > > > The system architecture is 2 * Intel Xeon with hyperthreading. The OS > is Red Hat Enterprise (RHE) 4 64-bit running Python 2.5.4. The C > compiler being used is GCC

Re: [Numpy-discussion] ndarray of complex-like data

2010-02-17 Thread Robert Kern
On Wed, Feb 17, 2010 at 02:43, Brecht Machiels wrote: > Robert Kern wrote: 2) Subclass the ndarray to do what you want. >>> I have subclassed ndarray, but I'm not sure how to continue from there. >>> I was thinking of overriding __getitem__ and casting the complex to my >>> complex subclass.

Re: [Numpy-discussion] Unit Tests failing daily for 2 months

2010-02-17 Thread Christopher Hanley
> > I don't see these here. What architecture/compiler/os ? > The system architecture is 2 * Intel Xeon with hyperthreading. The OS is Red Hat Enterprise (RHE) 4 64-bit running Python 2.5.4. The C compiler being used is GCC 3.4.6. No Fortran compiler is being used. > > That's new to me. Darn.

Re: [Numpy-discussion] Unit Tests failing daily for 2 months

2010-02-17 Thread Charles R Harris
On Wed, Feb 17, 2010 at 8:33 AM, Christopher Hanley wrote: > Hi, > > I've been informed by our build/installation person that 3 unit tests > have been failing in the daily numpy svn installation for the last 2 > months. The most recent output from the tests is as follows: > > I don't see these he

[Numpy-discussion] Unit Tests failing daily for 2 months

2010-02-17 Thread Christopher Hanley
Hi, I've been informed by our build/installation person that 3 unit tests have been failing in the daily numpy svn installation for the last 2 months. The most recent output from the tests is as follows: == FAIL: Test generic lo

[Numpy-discussion] doc wiki merge request

2010-02-17 Thread Ralf Gommers
Hi, Can we have a doc wiki merge before the next release? I reviewed everything, there's changes to about 150 docstrings. See http://docs.scipy.org/numpy/patch/ Thanks, Ralf ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.

Re: [Numpy-discussion] ndarray of complex-like data

2010-02-17 Thread Brecht Machiels
Robert Kern wrote: >>> 2) Subclass the ndarray to do what you want. >> I have subclassed ndarray, but I'm not sure how to continue from there. >> I was thinking of overriding __getitem__ and casting the complex to my >> complex subclass. Would that be the way to go? How would that work with >> slic

Re: [Numpy-discussion] Extract subset from an array

2010-02-17 Thread Nicola Creati
Francesc Alted wrote: > A Wednesday 17 February 2010 08:34:06 Nicola Creati escrigué: > >> Any kind of improvement is really appreciated. >> > > Well, if you cannot really transpose your matrix, numexpr can also serve as a > good accelerator: > > In [1]: import numpy as np > > In [2]: impo

Re: [Numpy-discussion] Extract subset from an array

2010-02-17 Thread Francesc Alted
A Wednesday 17 February 2010 08:34:06 Nicola Creati escrigué: > Any kind of improvement is really appreciated. Well, if you cannot really transpose your matrix, numexpr can also serve as a good accelerator: In [1]: import numpy as np In [2]: import numexpr as ne In [3]: x_min, x_max, y_min, y_