[Numpy-discussion] Conversion from structured dtype to object changed in Numpy 1.6.0.

2011-05-19 Thread Mark Dickinson
With numpy 1.5.1: Python 2.7.1 |EPD 7.0-2 (32-bit)| (r271:86832, Dec 3 2010, 15:41:32) [GCC 4.0.1 (Apple Inc. build 5488)] on darwin Type help, copyright, credits or license for more information. from numpy import array x = array((1.2, 2.3), dtype=[('field1', float), ('field2', float)])

Re: [Numpy-discussion] Conversion from structured dtype to object changed in Numpy 1.6.0.

2011-05-19 Thread Pauli Virtanen
Thu, 19 May 2011 12:36:22 +0100, Mark Dickinson wrote: [clip] from numpy import array x = array((1.2, 2.3), dtype=[('field1', float), ('field2', float)]) x.astype(object) array(1.2, dtype=object) Was this change intentional, or should I file a bug? I couldn't find any reference to it in

[Numpy-discussion] f2py and lapack DLARUV

2011-05-19 Thread Stephane Raynaud
Hi, trying to build a fortran extension linked to lapack (f77), I faced a problem that I reduced to the following example. testfile.f90 subroutine testfunc     integer,parameter :: n=2     integer :: iseed(4)     real(kind=8) :: x(n)     iseed = (/0,1,3,4/)     call

[Numpy-discussion] Windows Registry Keys

2011-05-19 Thread Mathew Yeates
Hi I have installed a new version of Python27 in a new directory. I want to get this info into the registry so, when I install Numpy, it will use my new Python TIA -Mathew ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] Windows Registry Keys

2011-05-19 Thread Alan G Isaac
On 5/19/2011 2:07 PM, Mathew Yeates wrote: I have installed a new version of Python27 in a new directory. I want to get this info into the registry so, when I install Numpy, it will use my new Python It probably will already. Did you try? (Assumption: you're using Windows installers.) Alan

Re: [Numpy-discussion] Windows Registry Keys

2011-05-19 Thread Mathew Yeates
I *am* using the windows installer. On Thu, May 19, 2011 at 11:14 AM, Alan G Isaac alan.is...@gmail.com wrote: On 5/19/2011 2:07 PM, Mathew Yeates wrote: I have installed a new version of Python27 in a new directory. I want to get this info into the registry so, when I install Numpy, it will

Re: [Numpy-discussion] Windows Registry Keys

2011-05-19 Thread Alan G Isaac
On 5/19/2011 2:15 PM, Mathew Yeates wrote: I*am* using the windows installer. And you find that it does not find your most recent Python 2.7 install, for which you also used the Windows installer? Alan Isaac ___ NumPy-Discussion mailing list

Re: [Numpy-discussion] Windows Registry Keys

2011-05-19 Thread Mathew Yeates
Right. The Registry keys point to the old Python27. On Thu, May 19, 2011 at 11:23 AM, Alan G Isaac alan.is...@gmail.com wrote: On 5/19/2011 2:15 PM, Mathew Yeates wrote: I*am*  using the windows installer. And you find that it does not find your most recent Python 2.7 install, for which you

[Numpy-discussion] AttributeError in numpy.distutils

2011-05-19 Thread Branimir Sesar
Dear Numpy users, I've encountered an AttributeError in numpy.distutils File /home/bsesar/usr/pydebug/lib/python2.7/site-packages/numpy/distutils/command/build_src.py, line 646, in swig_sources extension.swig_opts.remove('-c++') AttributeError: 'str' object has no attribute 'remove'

Re: [Numpy-discussion] Windows Registry Keys

2011-05-19 Thread Christoph Gohlke
On 5/19/2011 11:24 AM, Mathew Yeates wrote: Right. The Registry keys point to the old Python27. On Thu, May 19, 2011 at 11:23 AM, Alan G Isaacalan.is...@gmail.com wrote: On 5/19/2011 2:15 PM, Mathew Yeates wrote: I*am* using the windows installer. And you find that it does not find your

[Numpy-discussion] array order in numpy.dot

2011-05-19 Thread RadimRehurek
Hello, what code paths does `numpy.dot(matrix, matrix)` take with regard to the order of the input matrices (c/fortran contiguous?). In particular, under what conditions does it make a copy of the input matrices, and under which conditions does it set the gemm transposition flags internally?

Re: [Numpy-discussion] Windows Registry Keys

2011-05-19 Thread Alan G Isaac
On 5/19/2011 2:24 PM, Mathew Yeates wrote: The Registry keys point to the old Python27. Odd. The default installation settings should have reset this. Or so I believed. Maybe this will help? http://effbot.org/zone/python-register.htm Alan Isaac

Re: [Numpy-discussion] Windows dev-build Numpy 1.6.1

2011-05-19 Thread Ralf Gommers
On Wed, May 18, 2011 at 11:40 PM, Bruce Southey bsout...@gmail.com wrote: On 05/18/2011 03:28 PM, Ralf Gommers wrote: On Wed, May 18, 2011 at 8:42 PM, Wieland Brendel wielandbren...@gmx.netwrote: I succeeded now in installing the latest Numpy version. There was some problem in

Re: [Numpy-discussion] Windows Registry Keys

2011-05-19 Thread Mathew Yeates
cool. just what I was looking for On Thu, May 19, 2011 at 2:15 PM, Alan G Isaac alan.is...@gmail.com wrote: On 5/19/2011 2:24 PM, Mathew Yeates wrote: The Registry keys point to the old Python27. Odd.  The default installation settings should have reset this.  Or so I believed. Maybe this

Re: [Numpy-discussion] Memory leak/fragmentation when using np.memmap

2011-05-19 Thread Ralf Gommers
On Thu, May 19, 2011 at 1:53 AM, Pauli Virtanen p...@iki.fi wrote: On Wed, 18 May 2011 16:36:31 -0700, G Jones wrote: [clip] As a followup, I managed to install tcmalloc as described in the article I mentioned. Running the example I sent now shows a constant memory foot print as expected.

[Numpy-discussion] more python 3.2 fun

2011-05-19 Thread josef . pktd
(just illustrating some porting fun) I was struggling with another python 3.2 bug in scikits.statsmodels (with grunfeld data) with numpy 1.5.1, I'm reading the data with data = recfromtxt(open(filepath + '/grunfeld.csv', 'rb'), delimiter=,, names=True, dtype=f8,f8,f8,a17,f8)

Re: [Numpy-discussion] How can Import DATA from a Fortran file

2011-05-19 Thread Aradenatorix Veckhom Vacelaevus
Thanks both for your helping: I was checking the script fro Olivier but doesn't works yet, later I tried with the asciitable package but I also never could read any of my files (finally I decide create a single file for each case, it means to get 2 arrays for each domain). I was reading a while

Re: [Numpy-discussion] f2py on Windows, compiler options

2011-05-19 Thread Mathew Yeates
Solved. Sort of. When I compiled by hand and switched /MD to /MT it worked. It would still be nice if I could control the compiler options f2py passes to cl.exe -Mathew On Thu, May 19, 2011 at 3:05 PM, Mathew Yeates mat.yea...@gmail.com wrote: Hi I am trying to run f2py and link to some

Re: [Numpy-discussion] f2py on Windows, compiler options

2011-05-19 Thread Mathew Yeates
okay. To get it all to work I edited msvc9compiler.py and changed /MD to /MT. This still led to an a different error. having to do with mt.exe which does not come with MSVC 2008 Express. I fixed this commenting out /MANIFEST stuff in msvc9compile.py On Thu, May 19, 2011 at 6:25 PM, Mathew Yeates