Re: [Numpy-discussion] 64-bit windows numpy / scipy wheels for testing

2014-07-03 Thread Julian Taylor
On 03.07.2014 05:56, Sturla Molden wrote: On 02/07/14 19:55, Chris Barker wrote: Indeed -- the default (i.e what you get with pip install numpy) should be SSE2 -- I:d much rather have a few folks with old hardware have to go through some hoops that n have most people get something that is

[Numpy-discussion] Fast way to convert (nested) list to numpy object array?

2014-07-03 Thread Marc Hulsman
Hello, In my application I use nested, someitmes variable length lists, e.g. [[1,2], [1,2,3], ...]. These can also become double nested, etc. up to arbitrary complexity. I like to use numpy indicing on the outer list, i.e. I want to create: array([[1, 2], [1, 2, 3]], dtype=object) However,

[Numpy-discussion] Numpy and debug symbols

2014-07-03 Thread Pablo Pérez García
Hello, I'm a newcomer and I have a question I did not manage to solve yet, I posted it into these two stack-overflow entries: http://stackoverflow.com/questions/24529811/compiling-numpy-for-windows-python-2-7-7

Re: [Numpy-discussion] Numpy and debug symbols

2014-07-03 Thread Julian Taylor
On Thu, Jul 3, 2014 at 11:14 AM, Pablo Pérez García pabl...@computer.org wrote: Hello, I'm a newcomer and I have a question I did not manage to solve yet, I posted it into these two stack-overflow entries: http://stackoverflow.com/questions/24529811/compiling-numpy-for-windows-python-2-7-7

Re: [Numpy-discussion] Fast way to convert (nested) list to numpy object array?

2014-07-03 Thread Julian Taylor
numpy descends into the lists even if you request a object dtype as it treats object arrays containing nested lists of equal size as ndimensional: np.array([[1,2], [3,4]], dtype=object).ndim 2 I don't think we have a constructor that limits the maximum dimension, only one the minimum dimension.

Re: [Numpy-discussion] Fast way to convert (nested) list to numpy object array?

2014-07-03 Thread Julian Taylor
On Thu, Jul 3, 2014 at 11:30 AM, Julian Taylor jtaylor.deb...@googlemail.com wrote: numpy descends into the lists even if you request a object dtype as it treats object arrays containing nested lists of equal size as ndimensional: np.array([[1,2], [3,4]], dtype=object).ndim 2 I don't think

Re: [Numpy-discussion] 64-bit windows numpy / scipy wheels for testing

2014-07-03 Thread Matthew Brett
Hi, On Thu, Jul 3, 2014 at 4:56 AM, Sturla Molden sturla.mol...@gmail.com wrote: On 02/07/14 19:55, Chris Barker wrote: Indeed -- the default (i.e what you get with pip install numpy) should be SSE2 -- I:d much rather have a few folks with old hardware have to go through some hoops that n

Re: [Numpy-discussion] Numpy and debug symbols

2014-07-03 Thread Carl Kleffner
Hi, to trace this error, you can try to run your programm with the dependency walker http://www.dependencywalker.com/ . In the menu there is a profiling option. With 'Start profiling' you get messages of all accesses to DLLs and Python extensions. Most likely a DLL is not found. Be aware: for

Re: [Numpy-discussion] 64-bit windows numpy / scipy wheels for testing

2014-07-03 Thread Matthew Brett
I guess this one's mainly for Carl: On Thu, Jul 3, 2014 at 11:06 AM, Matthew Brett matthew.br...@gmail.com wrote: Hi, On Thu, Jul 3, 2014 at 4:56 AM, Sturla Molden sturla.mol...@gmail.com wrote: On 02/07/14 19:55, Chris Barker wrote: Indeed -- the default (i.e what you get with pip install

Re: [Numpy-discussion] Numpy and debug symbols

2014-07-03 Thread Carl Kleffner
Hi, numpy extensions are linked against python27.dll. I have no idea, if it works to copy python27.dll side by side to python27_d.dll (I guess not). But you can try it anyway. The clean way is to get or compile a debug numpy version linked against python27_d.dll Regards Carll 2014-07-03 12:51

Re: [Numpy-discussion] 64-bit windows numpy / scipy wheels for testing

2014-07-03 Thread Carl Kleffner
Hi Matthew, I can make it in the late evening (MEZ timezone), so you have to wait a bit ... I also will try to create new numpy/scipy wheels. I now have the latest OpenBLAS version ready. Olivier gaves me access to rackspace. I wil try it out on the weekend. Regards Carl 2014-07-03 12:46

Re: [Numpy-discussion] Fast way to convert (nested) list to numpy object array?

2014-07-03 Thread Marc Hulsman
On 07/03/2014 11:43 AM, Julian Taylor wrote: On second though I guess adding a short circuit to the dimension discovery on mismatching list length with object type should solve the issue too. A bit more information on the use case would still be useful, why do you need to use numpy arrays for

Re: [Numpy-discussion] Fast way to convert (nested) list to numpy object array?

2014-07-03 Thread Sebastian Berg
On Do, 2014-07-03 at 14:36 +0200, Marc Hulsman wrote: On 07/03/2014 11:43 AM, Julian Taylor wrote: On second though I guess adding a short circuit to the dimension discovery on mismatching list length with object type should solve the issue too. A bit more information on the use case would

Re: [Numpy-discussion] [Python-ideas] PEP pre-draft: Support for indexing with keyword arguments

2014-07-03 Thread Sturla Molden
Pandas might have more use for this than NumPy. Database interfaces might also have use for this. Sturla Nathaniel Smith n...@pobox.com wrote: There's some discussion on python-ideas about making it possible for python indexing to accept kwargs, eg arr[1:2, foo=bar] Since numpy is a

Re: [Numpy-discussion] 64-bit windows numpy / scipy wheels for testing

2014-07-03 Thread Matthew Brett
Hi, On Thu, Jul 3, 2014 at 12:51 PM, Carl Kleffner cmkleff...@gmail.com wrote: Hi Matthew, I can make it in the late evening (MEZ timezone), so you have to wait a bit ... I also will try to create new numpy/scipy wheels. I now have the latest OpenBLAS version ready. Olivier gaves me access

[Numpy-discussion] Teaching Scipy BoF at SciPy

2014-07-03 Thread Chris Barker
HI Folks, I will be hosting a Teaching the SciPy Stack BoF at SciPy this year: https://conference.scipy.org/scipy2014/schedule/presentation/1762/ (Actually, I proposed it for the conference, but would be more than happy to have other folks join me in facilitating, hosting, etc.) I've put up a

[Numpy-discussion] parsing dtype descriptors

2014-07-03 Thread Ted Sandler
Hi all, is there a spec or grammar for valid values of numpy dtype descriptor strings? I am writing code to parse .npy files from Java and want to be able to handle the range of ndarray descriptor strings. I came across this code: dtype = numpy.dtype(d['descr']) at line 267 in format.py:

Re: [Numpy-discussion] Fast way to convert (nested) list to numpy object array?

2014-07-03 Thread Stephan Hoyer
On Thu, Jul 3, 2014 at 5:36 AM, Marc Hulsman m.huls...@tudelft.nl wrote: This can however go wrong. Say that we have nested variable length lists, what sometimes happens is that part of the data has (by chance) only fixed length nested lists, while another part has variable length nested

Re: [Numpy-discussion] parsing dtype descriptors

2014-07-03 Thread Valentin Haenel
Dear Ted, * Ted Sandler ted.sand...@gmail.com [2014-07-03]: Hi all, is there a spec or grammar for valid values of numpy dtype descriptor strings? I am writing code to parse .npy files from Java and want to be able to handle the range of ndarray descriptor strings. I came across this code:

Re: [Numpy-discussion] parsing dtype descriptors

2014-07-03 Thread Ted Sandler
Thanks. No, it's not what I'm looking for. I'm looking for the code that parses the string i8 in the npy file array header's descriptor: {'descr': 'i8', 'fortran_order': False, 'shape': (5,), } There are many different descriptor strings, e.g.: 'f8' '=f4' 'float32' 'c16' ... Ideally, I

Re: [Numpy-discussion] Fast way to convert (nested) list to numpy object array?

2014-07-03 Thread Charles R Harris
On Thu, Jul 3, 2014 at 3:30 AM, Julian Taylor jtaylor.deb...@googlemail.com wrote: numpy descends into the lists even if you request a object dtype as it treats object arrays containing nested lists of equal size as ndimensional: np.array([[1,2], [3,4]], dtype=object).ndim 2 I don't