Re: [Numpy-discussion] f2py callback bug?

2009-11-24 Thread Pearu Peterson
Hi, It is not really a bug what you are seeing.. In pycalc when assigning j = 20 * j you create a new object `j` and the argument object `j`, that links back to Fortran data, gets discarded. So, you can change j inplace, for example: j[:] = 20*j The first argument `i` is int object that in

Re: [Numpy-discussion] Installing numpy under cygwin

2009-11-24 Thread Olivia Cheronet
Hello David, Below is the full log. Thanks very much for the help. Olivia Running from numpy source directory. non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2 blas_opt_info: blas_mkl_info: libraries mkl,vml,guide not found in /usr/local/lib libraries mkl,vml,guide not fou

Re: [Numpy-discussion] failure building trunk with mingw

2009-11-24 Thread David Cournapeau
On Wed, Nov 25, 2009 at 12:15 AM, wrote: > > > I also ran the test of some old scipy against the trunk numpy: > > scipy.0.7.0('4826') finishes tests with some display errors > scipy0.7.1rc3 test suite crashes > both scipy versions build by David, according to  __config__.py I have build scipy 0

Re: [Numpy-discussion] Python 2.6, NumPy on CentOS 5.3

2009-11-24 Thread David Cournapeau
On Wed, Nov 25, 2009 at 2:11 AM, Robert DeLisle wrote: > David Cournapeau wrote: > > You need the *.so and not the *.so.3.1.1. The latter are enough to *run* > applications linked against the library, the former is necessary to link > against them. IOW, you need the devel packages for blas, lapack

Re: [Numpy-discussion] Installing numpy under cygwin

2009-11-24 Thread David Cournapeau
Hi Olivia, On Mon, Nov 23, 2009 at 6:51 AM, Olivia Cheronet wrote: > Hello, > >  I attempted to install Numpy for my Cygwin python again, by simply executing: >  >python setup.py install > >  However, I now get the following: >  >File "numpy/core/setup.py", line 253, in check_mathlib >  >  raise

Re: [Numpy-discussion] datetime update

2009-11-24 Thread David Cournapeau
On Tue, Nov 24, 2009 at 8:42 AM, Travis Oliphant wrote: > > I've made a few changes to datetime today and spent some time looking over > what is there and what remains to be implemented. > Basically, the biggest thing left to do is to implement the low-level > casting functions to and from datetim

Re: [Numpy-discussion] datetime update

2009-11-24 Thread Travis Oliphant
On Nov 23, 2009, at 6:53 PM, Pierre GM wrote: On Nov 23, 2009, at 6:42 PM, Travis Oliphant wrote: I've made a few changes to datetime today and spent some time looking over what is there and what remains to be implemented. As always, many thanks for your work !! Basically, the biggest t

[Numpy-discussion] Help making better use of numpy array functions

2009-11-24 Thread mdekauwe
Hi I have written some code and I would appreciate any suggestions to make better use of the numpy arrays functions to make it a bit more efficient and less of a port from C. Any tricks are thoughts would be much appreciated. The code reads in a series of images, collects a running total if the v

Re: [Numpy-discussion] Problems casting object arrays to string type on Ubuntu

2009-11-24 Thread Dan Yamins
> I suspect you're running into this bug: > > http://projects.scipy.org/numpy/ticket/1235 > > This has been fixed in SVN r7514, (and thus 1.4 pre releases), so it's > not a platform difference. > Great, thanks for the reply! best, Dan > > > wrote: > > > > Hi all,

Re: [Numpy-discussion] Python 2.6, NumPy on CentOS 5.3

2009-11-24 Thread Robert DeLisle
Gokhan, Thank you for the referred repo. I'll keep this as a reference for future endeavours should I fail given my current approach. As for installing Python 2.6.4, that was very easily done as a parallel installation as I described. I'm more than happy to give you more details if you need the

Re: [Numpy-discussion] Python 2.6, NumPy on CentOS 5.3

2009-11-24 Thread Robert DeLisle
David Cournapeau wrote: You need the *.so and not the *.so.3.1.1. The latter are enough to *run* applications linked against the library, the former is necessary to link against them. IOW, you need the devel packages for blas, lapack (and python). If you want to do it without admin rights, there i

[Numpy-discussion] f2py callback bug?

2009-11-24 Thread James McEnerney
While using the call-back feature of f2py I stumbled across what appears to be a bug and I'm asking the community to look into this. Background: I'm in the middle of converting some legacy fortran to python. There is one routine that is particulary thorny that calls more easily convertible servic

Re: [Numpy-discussion] Python 2.6, NumPy on CentOS 5.3

2009-11-24 Thread Gökhan Sever
On Mon, Nov 23, 2009 at 7:07 PM, wrote: > An application package that I have requires Python 2.6 and NumPy. > > I've installed Python 2.6 in a parallel manner as follows: > > NO modification of the core Python2.4 in /usr/bin has been done. Rather, I > installed Python 2.6 under /opt/Python_2.6.4

Re: [Numpy-discussion] Problems casting object arrays to string type on Ubuntu

2009-11-24 Thread Michael Droettboom
Sorry I missed your message the first time around. I suspect you're running into this bug: http://projects.scipy.org/numpy/ticket/1235 This has been fixed in SVN r7514, (and thus 1.4 pre releases), so it's not a platform difference. The workaround (at the expense of performance, of course) is

Re: [Numpy-discussion] failure building trunk with mingw

2009-11-24 Thread josef . pktd
On Sun, Nov 22, 2009 at 1:40 PM, Charles R Harris wrote: > > > On Sun, Nov 22, 2009 at 6:28 AM, wrote: >> >> On Sun, Nov 22, 2009 at 2:35 AM, David Cournapeau >> wrote: >> > On Wed, Nov 18, 2009 at 6:10 PM, David Cournapeau >> > wrote: >> >> On Wed, Nov 18, 2009 at 12:38 AM,   wrote: >> >> >> >

Re: [Numpy-discussion] Problems casting object arrays to string type on Ubuntu

2009-11-24 Thread Dan Yamins
Really, no idea about this? (Sorry if my original email was unclear.) On Sat, Nov 21, 2009 at 3:27 PM, Dan Yamins wrote: > Hi all, > > I'm having some issues casting object arrays to string type, especially on > my Ubuntu installation. (Ubuntu Jaunty, 9.04, with Numpy v. 1.3.) > > With small a

Re: [Numpy-discussion] Numpy on Python3

2009-11-24 Thread René Dudfield
On Mon, Nov 23, 2009 at 10:08 AM, Pauli Virtanen wrote: > Setup.py runs 2to3 automatically for all changed files. Of course, if it's > possible to cater for24 and 3 at the same time,that's good. How do you work > around the relative imports andthe changed exception catching syntax? > hi, see m

Re: [Numpy-discussion] Numpy on Python3

2009-11-24 Thread René Dudfield
awesome work Pauli! ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Numpy on Python3

2009-11-24 Thread René Dudfield
On Mon, Nov 23, 2009 at 7:19 AM, David Cournapeau wrote: > On Mon, Nov 23, 2009 at 2:35 PM, Pauli Virtanen wrote: > >> It might be nice to have this merged in at some point after 1.4.0 (after >> the most obvious glaring bugs have been fixed), so that we could perhaps >> start aiming for Python3 c