Re: [Numpy-discussion] Convert recarray to list (is this a bug?)

2012-07-10 Thread Travis Oliphant
On Jul 9, 2012, at 9:24 PM, Yan Tang wrote: Hi, I noticed there is an odd issue when I am trying to convert a recarray to list. See below for the example/test case. $ cat a.csv date,count 2011-07-25,91 2011-07-26,118 $ cat b.csv name,count foo,1233 bar,100 $ python from

Re: [Numpy-discussion] import numpy performance

2012-07-10 Thread Andrew Dalke
On Jul 8, 2012, at 9:22 AM, Scott Sinclair wrote: On 6 July 2012 15:48, Andrew Dalke da...@dalkescientific.com wrote: I followed the instructions at http://docs.scipy.org/doc/numpy/dev/gitwash/patching.html and added Ticket #2181 (with patch) ... Those instructions need to be updated to

Re: [Numpy-discussion] Type specific sorts: objects, structured arrays, and all that.

2012-07-10 Thread Travis Oliphant
On Jul 9, 2012, at 10:32 PM, Charles R Harris wrote: Hi All, I've been adding type specific sorts for object and structured arrays. It seems that datetime64 and timedelta64 are also not supported. Is there any reason why those types should not be sorted as int64? Also, when sorting

Re: [Numpy-discussion] import numpy performance

2012-07-10 Thread Travis Oliphant
Andrew, Thank you for your comments. I agree it's confusing coming to github at first. I still have to refer to the jargon-file to understand what everything means. There are a lot of unfamiliar terms. Thank you for your patches. It does imply more work for developers on NumPy,

Re: [Numpy-discussion] Type specific sorts: objects, structured arrays, and all that.

2012-07-10 Thread Robert Kern
On Tue, Jul 10, 2012 at 4:32 AM, Charles R Harris charlesr.har...@gmail.com wrote: Hi All, I've been adding type specific sorts for object and structured arrays. It seems that datetime64 and timedelta64 are also not supported. Is there any reason why those types should not be sorted as int64?

[Numpy-discussion] Euroscipy 2012: early bird registration ending soon

2012-07-10 Thread Emmanuelle Gouillart
Hello, early bird registration for Euroscipy 2012 is soon coming to an end, with the deadline on July 22nd. Don't forget to register soon! Reduced fees are available for academics, students and speakers. Registration takes place online on http://www.euroscipy.org/conference/euroscipy2012.

Re: [Numpy-discussion] Looking for the most important bugs, documentation needs, etc.

2012-07-10 Thread Ralf Gommers
Hi, On Tue, Jul 10, 2012 at 4:20 AM, Six Silberman silberman@gmail.comwrote: Hi all, Some colleagues and I are interested in contributing to numpy. That's great, welcome! We have a range of backgrounds -- I for example am new to contributing to open source software but have a

Re: [Numpy-discussion] Looking for the most important bugs, documentation needs, etc.

2012-07-10 Thread Ralf Gommers
On Tue, Jul 10, 2012 at 4:20 AM, Six Silberman silberman@gmail.comwrote: Hi all, Some colleagues and I are interested in contributing to numpy. We have a range of backgrounds -- I for example am new to contributing to open source software but have a (small) bit of background in

Re: [Numpy-discussion] import numpy performance

2012-07-10 Thread Scott Sinclair
On 10 July 2012 09:05, Andrew Dalke da...@dalkescientific.com wrote: On Jul 8, 2012, at 9:22 AM, Scott Sinclair wrote: On 6 July 2012 15:48, Andrew Dalke da...@dalkescientific.com wrote: I followed the instructions at http://docs.scipy.org/doc/numpy/dev/gitwash/patching.html and added Ticket

Re: [Numpy-discussion] Looking for the most important bugs, documentation needs, etc.

2012-07-10 Thread Ralf Gommers
On Tue, Jul 10, 2012 at 11:36 AM, Ralf Gommers ralf.gomm...@googlemail.comwrote: On Tue, Jul 10, 2012 at 4:20 AM, Six Silberman silberman@gmail.comwrote: Hi all, Some colleagues and I are interested in contributing to numpy. We have a range of backgrounds -- I for example am new to

Re: [Numpy-discussion] Type specific sorts: objects, structured arrays, and all that.

2012-07-10 Thread Benjamin Root
On Tue, Jul 10, 2012 at 3:37 AM, Robert Kern robert.k...@gmail.com wrote: On Tue, Jul 10, 2012 at 4:32 AM, Charles R Harris charlesr.har...@gmail.com wrote: Hi All, I've been adding type specific sorts for object and structured arrays. It seems that datetime64 and timedelta64 are also

Re: [Numpy-discussion] Looking for the most important bugs, documentation needs, etc.

2012-07-10 Thread Benjamin Root
On Tue, Jul 10, 2012 at 6:07 AM, Ralf Gommers ralf.gomm...@googlemail.comwrote: On Tue, Jul 10, 2012 at 11:36 AM, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Tue, Jul 10, 2012 at 4:20 AM, Six Silberman silberman@gmail.comwrote: Hi all, Some colleagues and I are

Re: [Numpy-discussion] Looking for the most important bugs, documentation needs, etc.

2012-07-10 Thread Cera, Tim
For documentation we have docstrings for each function and tutorial-style docs (http://docs.scipy.org/doc/numpy/user/, http://scipy-lectures.github.com/intro/numpy/index.html) . All docstrings should have clear usage examples, but I'm actually finding it quite hard to find functions that

Re: [Numpy-discussion] Type specific sorts: objects, structured arrays, and all that.

2012-07-10 Thread Charles R Harris
On Tue, Jul 10, 2012 at 1:05 AM, Travis Oliphant tra...@continuum.iowrote: On Jul 9, 2012, at 10:32 PM, Charles R Harris wrote: Hi All, I've been adding type specific sorts for object and structured arrays. It seems that datetime64 and timedelta64 are also not supported. Is there any

Re: [Numpy-discussion] Convert recarray to list (is this a bug?)

2012-07-10 Thread Yan Tang
Thank you very much. On Tue, Jul 10, 2012 at 3:02 AM, Travis Oliphant tra...@continuum.iowrote: On Jul 9, 2012, at 9:24 PM, Yan Tang wrote: Hi, I noticed there is an odd issue when I am trying to convert a recarray to list. See below for the example/test case. $ cat a.csv date,count

[Numpy-discussion] SSE Optimization

2012-07-10 Thread Fode
I am interested in adding SSE optimizations to numpy, where should I start? Fode ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] SSE Optimization

2012-07-10 Thread Francesc Alted
On 7/10/12 5:07 PM, Fode wrote: I am interested in adding SSE optimizations to numpy, where should I start? Well, to my knowledge there is not many open source code (Intel MKL and AMD ACML do not enter in this section) that uses the SSE, but a good start could be:

Re: [Numpy-discussion] SSE Optimization

2012-07-10 Thread Dag Sverre Seljebotn
Some more context over what Francesc said: If you mean using SSE for simple things like addition and multiplication, then you must be aware that NumPy's way of working means that it lends itself very badly to such optimizations. For small arrays, the Python interpreter overhead tends to

[Numpy-discussion] build numpy 1.6.2

2012-07-10 Thread Prakash Joshi
Hi All, I built numpy 1.6.2 on linux 64 bit and installed numpy in site-packages, It pass all the test cases of numpy, but I am not sure if this is good build; As I did not specified any fortran compiler while setup, also I do not have fortran compiler on my machine. Thanks Prakash

[Numpy-discussion] [ANN] Patsy 0.1.0, a python library for statistical formulas

2012-07-10 Thread Nathaniel Smith
[Apologies for cross-posting. Please direct any replies to pyd...@googlegroups.com.] I'm pleased to announce the first release of Patsy, a Python package for describing statistical models and building design matrices using formulas. Patsy's formulas are inspired by and largely compatible with

Re: [Numpy-discussion] build numpy 1.6.2

2012-07-10 Thread Benjamin Root
On Tue, Jul 10, 2012 at 2:45 PM, Prakash Joshi pjo...@numenta.com wrote: Hi All, I built numpy 1.6.2 on linux 64 bit and installed numpy in site-packages, It pass all the test cases of numpy, but I am not sure if this is good build; As I did not specified any fortran compiler while

Re: [Numpy-discussion] build numpy 1.6.2

2012-07-10 Thread Prakash Joshi
Thanks Ben. Also I did not specified any of BLAS, LAPACK, ATLAS libraries, do we need these libraries for numpy? I simply used following command to build: python setup.py build python setup.py install —prefix=/usr/local If above commands are sufficient, than I hope same steps to build will

Re: [Numpy-discussion] build numpy 1.6.2

2012-07-10 Thread Benjamin Root
Prakash, On Tue, Jul 10, 2012 at 3:26 PM, Prakash Joshi pjo...@numenta.com wrote: Thanks Ben. Also I did not specified any of BLAS, LAPACK, ATLAS libraries, do we need these libraries for numpy? Need, no, you do not need them in the sense that NumPy does not require them to work. NumPy

[Numpy-discussion] Operations on integer matrices known to return integers

2012-07-10 Thread Six Silberman
We now have a = array([[1, 2], [3, 4]], dtype=int8) array([[1, 2], [3, 4]], dtype=int8) d = linalg.det(a) d -2.0004 d.dtype dtype('float64') This is at least partly due to use of LU factorization in computing the determinant. Some operations on integer matrices

[Numpy-discussion] Numpy and scipy on python 2.6

2012-07-10 Thread Naser Nikandish
Hi, I am using python 2.6 that comes pre installed on Mac Lion 10.7.4. I am also using Gurobipy which is an optimization solver. Now, I need to install numpy and scipy to use their statistical functions. I read mixed reviews about compatibility of numpy and scipy with preinstalled python 2.6.