[Numpy-discussion] RuntimeWarning: numpy.ndarray size changed

2012-04-11 Thread Nils Wagner
Hi all, Can someone reproduce the following message ? Python 2.7.2 (default, Aug 19 2011, 20:41:43) [GCC] on linux2 Type help, copyright, credits or license for more information. import numpy /home/nwagner/local/lib64/python2.7/site-packages/numpy/random/__init__.py:91: RuntimeWarning:

Re: [Numpy-discussion] bug in ceil()

2010-10-06 Thread Nils Wagner
On Wed, 06 Oct 2010 19:55:00 +0200 Christian Fischer cfisc...@itm.uni-stuttgart.de wrote: Hi All, I use numpy 1.4.1 on Debian squeeze amd64. I noticed that ceil() is not working properly. If the input to ceil() is a float I expect a float to be returned but for inputs in (-1.0, 0.0)

Re: [Numpy-discussion] Schedule for 1.5.1?

2010-10-07 Thread Nils Wagner
On Thu, 7 Oct 2010 09:06:55 + (UTC) Pauli Virtanen p...@iki.fi wrote: Thu, 07 Oct 2010 16:34:46 +0800, Ralf Gommers wrote: [clip] A 1.5.1 release soon would be good. All the issues above are already committed, is there anything else that needs to go in? If not, I think an RC by the

[Numpy-discussion] numpy.test() segfaults '2.0.0.dev8716'

2010-10-20 Thread Nils Wagner
test_duplicate_field_names_assign (test_regression.TestRegression) ... FF Program received signal SIGSEGV, Segmentation fault. 0x77b3077a in ?? () from /usr/lib64/libpython2.6.so.1.0 (gdb) bt #0 0x77b3077a in ?? () from /usr/lib64/libpython2.6.so.1.0 #1

[Numpy-discussion] numpy.test() errors

2010-11-22 Thread Nils Wagner
Hi all, There are some new test errors == ERROR: Test with missing and filling values -- Traceback (most recent call last): File

Re: [Numpy-discussion] numpy.test() errors

2010-11-23 Thread Nils Wagner
On Tue, 23 Nov 2010 16:39:13 +0100 Gerrit Holl gerrit.h...@gmail.com wrote: 2010/11/23 Stéfan van der Walt ste...@sun.ac.za: On Tue, Nov 23, 2010 at 9:28 AM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote: /data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/npyio.py, line 66

Re: [Numpy-discussion] numpy.test() Program received signal SIGABRT, Aborted.

2010-12-02 Thread Nils Wagner
On Fri, 3 Dec 2010 00:42:16 -0700 Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Dec 3, 2010 at 12:29 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: Hi all, I have installed the latest version of numpy. numpy.__version__ '2.0.0.dev-6aacc2d' I don't see that here

Re: [Numpy-discussion] numpy.test() Program received signal SIGABRT, Aborted.

2010-12-02 Thread Nils Wagner
On Fri, 03 Dec 2010 08:47:32 +0100 Nils Wagner nwag...@iam.uni-stuttgart.de wrote: On Fri, 3 Dec 2010 00:42:16 -0700 Charles R Harris charlesr.har...@gmail.com wrote: On Fri, Dec 3, 2010 at 12:29 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: Hi all, I have installed the latest

Re: [Numpy-discussion] NumPy speed tests by NASA

2011-02-24 Thread Nils Wagner
On Thu, 24 Feb 2011 14:26:01 -0500 Frédéric Bastien no...@nouiz.org wrote: Hi, To print the information you can do: python -c 'import numpy;numpy.__config__.show()' You can access the info directly with: numpy.distutils.__config__.blas_opt_info['library_dirs']]

[Numpy-discussion] ValueError: Unknown format code 'g' for object of type 'str'

2011-03-26 Thread Nils Wagner
numpy.__version__ '2.0.0.dev-10db259' == ERROR: Test the str.format method with NumPy scalar types -- Traceback (most recent call last): File

[Numpy-discussion] numpy.test() failure

2011-09-14 Thread Nils Wagner
ERROR: test_polyfit (test_polynomial.TestDocs) -- Traceback (most recent call last): File /home/nwagner/local/lib64/python2.6/site-packages/numpy/lib/tests/test_polynomial.py, line 106, in test_polyfit weights =

[Numpy-discussion] genfromtxt

2011-10-11 Thread Nils Wagner
Hi all, How do I use genfromtxt to read a file with the following lines 11 2.2592365264892578D+01 22 2.2592365264892578D+01 13 2.669845581055D+00 33 2.2592365264892578D+01

[Numpy-discussion] Evaluate bivariate polynomials

2011-10-19 Thread Nils Wagner
Hi all, how do I evaluate a bivariate polynomial p(x,y)=c_0 + c_1 x + c_2 y +c_3 x**2 + c_4 x*y+ c_5 y**2 + c_6 x**3 + c_7 x**2*y + c_8 x*y**2+c_9*y**3 + \dots in numpy ? In case of univariate polynomials I can use np.polyval. Any pointer would be appreciated. Nils

Re: [Numpy-discussion] A bug in scipy.linalg.lu_factor?

2007-01-25 Thread Nils Wagner
On Thu, 25 Jan 2007 16:06:23 -0200 Paulo J. S. Silva [EMAIL PROTECTED] wrote: Hello, I am trying to write some unit tests to my new Automatic matrix code and I think I bumped into a bug in scipy.linalg.lu_factor. If you give a matrix to it, it doesn't honor the overwrite_a option: In

Re: [Numpy-discussion] A bug in scipy.linalg.lu_factor?

2007-01-25 Thread Nils Wagner
On Thu, 25 Jan 2007 16:56:54 -0200 Paulo J. S. Silva [EMAIL PROTECTED] wrote: Em Qui, 2007-01-25 às 19:46 +0100, Nils Wagner escreveu: It works if you use M=num.random.rand(2,2) Nils Yes, it works for arrays but not for matrices. I thought that scipy.linalg functions were

Re: [Numpy-discussion] Numpy and iterative procedures

2007-02-16 Thread Nils Wagner
Nadav Horesh wrote: At first glance it doesn't look hard to, at least, avoid looping over i, by replacing [i] by [:-2], [i+1] by [1:-1] and [i+2] by [2:]. But I might be wrong. Can you submit the piece of code with at least the most internal loop? Nadav. I guess he is looking for an

Re: [Numpy-discussion] Forcing the use of unoptimized blas/lapack even when atlas is present

2007-02-19 Thread Nils Wagner
Robert Kern wrote: David Cournapeau wrote: Hi there, I am developing a building tool to automatically build the whole numpy/scipy/matplotlib set from sources including dependencies, and one of the problem I got is to force which blas/lapack version to use when building numpy

Re: [Numpy-discussion] In need of Bessel functions - cephes/amos bindings for new numpy?

2007-03-09 Thread Nils Wagner
Arnd Baecker wrote: On Fri, 9 Mar 2007, Gregory Lielens wrote: Hi, we are looking for Bessel/Hankel ufuncs, and naturally found the cephes module developed by Travis. Had a quick look, and it seems the latest version I found (cepehs-1.3) is quite old, targeted to python 1.5 and

[Numpy-discussion] defmatrix.py

2007-03-25 Thread Nils Wagner
Hi, Several tests didn't pass due to the recent changes in defmatrix.py. Nils == ERROR: check_matmat (scipy.sparse.tests.test_sparse.test_csc) -- Traceback

[Numpy-discussion] Ticket 418

2007-03-30 Thread Nils Wagner
Hi all, Is someone able to reproduce the segfault described at http://projects.scipy.org/scipy/numpy/ticket/418 with a recent svn version ? I am using numpy.__version__ '1.0.2.dev3616' scipy.__version__ '0.5.3.dev2892' Nils ___ Numpy-discussion

Re: [Numpy-discussion] Bus Error with string in ndarray with named fields

2007-04-20 Thread Nils Wagner
Per B. Sederberg wrote: Hi Folks: I'm getting a very strange bus error in the recent versions of numpy (almost current svn). Here's how you can (hopefully) replicate it: On my MacBook: Python 2.4.3 (#1, Apr 7 2006, 10:54:33) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type

Re: [Numpy-discussion] bug in scipy.io.mmio

2007-05-02 Thread Nils Wagner
koara wrote: Hello, when saving a sparse matrix via scipy 0.5.2: scipy.io.mmio.mmwrite(), an exception is thrown: scipy.io.mmio.py: line 269: AttributeError: gettypecode not found changing the line to read 269: typecode = a.dtype.char fixes the problem.

Re: [Numpy-discussion] sort bug

2007-05-02 Thread Nils Wagner
mark wrote: Sorry for joining this discussion late. If you are only interested in the four largest eigenvalues, there are more efficient algorithms out there than just eig(). There are algorithms that just give you the N largest. Then again, I don't know of any Python implementations, but I

Re: [Numpy-discussion] BLAS and LAPACK used?

2007-05-17 Thread Nils Wagner
On Thu, 17 May 2007 10:48:40 +0200 lorenzo bolla [EMAIL PROTECTED] wrote: Hi all, I need to know the libraries (BLAS and LAPACK) which numpy has been linked to, when I compiled it. I can't remember which ones I used (ATLAS, MKL, etc...)... Is there an easy way to find it out? Thanks in

Re: [Numpy-discussion] array vs. matrix performance

2007-05-21 Thread Nils Wagner
Robert Cimrman wrote: I have come to a case where using a matrix would be easier than an array. The code uses lots of dot products, so I tested scipy.dot() performance with the code below and found that the array version is much faster (about 3 times for the given shape). What is the reason

Re: [Numpy-discussion] What is an empty matrix ?

2007-07-04 Thread Nils Wagner
David Cournapeau wrote: Hi, I was wondering what an empty matrix is, and what it is useful for (by empty matrix, I mean something created by numpy.matrix([])) ? Using those crash some functions (see for example scipy ticket #381), and I am not sure how to fix this bug. David

Re: [Numpy-discussion] expm

2007-07-20 Thread Nils Wagner
lorenzo bolla wrote: hi all. is there a function in numpy to compute the exp of a matrix, similar to expm in matlab? for example: expm([[0,0],[0,0]]) = eye(2) thanks, lorenzo.

Re: [Numpy-discussion] expm

2007-07-20 Thread Nils Wagner
On Fri, 20 Jul 2007 13:03:09 -0400 Kevin Jacobs [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 7/20/07, Anne Archibald [EMAIL PROTECTED] wrote: On 20/07/07, Nils Wagner [EMAIL PROTECTED] wrote: lorenzo bolla wrote: hi all. is there a function in numpy to compute the exp of a matrix

Re: [Numpy-discussion] expm

2007-07-20 Thread Nils Wagner
On Fri, 20 Jul 2007 14:45:43 -0400 Kevin Jacobs [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 7/20/07, Nils Wagner [EMAIL PROTECTED] wrote: Your sqrtm_eig(x) function won't work if x is defective. See test_defective.py for details. I am aware, though at least on my system, the SVD

Re: [Numpy-discussion] getting numPy happening for sciPy

2007-07-27 Thread Nils Wagner
David Cournapeau wrote: Robert Kern wrote: David Cournapeau wrote: I am willing to volunteer for the scipy part: I have quite extensive experience with building on linux now, and I can now build on windows without too much difficulties (I mean hardware-wise). Concerning the

Re: [Numpy-discussion] Count the occurrence of a certain integer in a list of integers

2007-08-07 Thread Nils Wagner
Alan G Isaac wrote: On Tue, 07 Aug 2007, Nils Wagner apparently wrote: I have a list of integer numbers. The entries can vary between 0 and 19. How can I count the occurrence of any number. Consider data [9, 6, 9, 6, 7, 9, 9, 10, 7, 9, 9, 6, 7, 9, 8, 8, 11, 9, 6, 7, 10, 9, 7, 9, 7

Re: [Numpy-discussion] numpy 1.04 numpy.test() hang

2007-11-08 Thread Nils Wagner
On Thu, 08 Nov 2007 12:12:42 -0600 Robert Kern [EMAIL PROTECTED] wrote: Geoffrey Zhu wrote: Good morning. I just installed the Windows binary of numpy 1.04. When I ran numpy.test() in IDLE (the Python shell that comes with Python), the program hang (or at least is running for half an

Re: [Numpy-discussion] numpy 1.04 numpy.test() hang

2007-11-09 Thread Nils Wagner
On Fri, 9 Nov 2007 11:31:54 -0600 Geoffrey Zhu [EMAIL PROTECTED] wrote: Very interesting! If I use the MSI file, numpy.test() hangs. If, however, I use the EGG file, it is actually fine. ___ Numpy-discussion mailing list

Re: [Numpy-discussion] SegFault/double free with simple array mask operation

2007-11-14 Thread Nils Wagner
On Wed, 14 Nov 2007 19:31:38 +0100 Achim Gaedke [EMAIL PROTECTED] wrote: Hello everybody! Please have a look at the program below: # start import numpy t_array=numpy.ones(2048, dtype=numpy.float32) sinc_array=numpy.array((len(t_array),),dtype=numpy.float32) sinc_array[(t_array

Re: [Numpy-discussion] documentation generator based on pyparsing

2007-11-28 Thread Nils Wagner
On Wed, 28 Nov 2007 11:29:20 +0100 Robert Cimrman [EMAIL PROTECTED] wrote: Hi, At http://scipy.org/Generate_Documentation you can find a very small documentation generator for NumPy/SciPy modules based on pyparsing package (by Paul McGuire). I am not sure if this belongs to where I

Re: [Numpy-discussion] documentation generator based on pyparsing

2007-11-29 Thread Nils Wagner
On Thu, 29 Nov 2007 10:01:26 +0100 Robert Cimrman [EMAIL PROTECTED] wrote: Hi Nils, Nils Wagner wrote: The output of ./gendocs.py -m 'scipy.linsolve.umfpack' differs from your example output (available at http://scipy.org/Generate_Documentation) I had to update the umfpack info.py

Re: [Numpy-discussion] documentation generator based on pyparsing

2007-11-30 Thread Nils Wagner
On Fri, 30 Nov 2007 09:48:09 +0100 Robert Cimrman [EMAIL PROTECTED] wrote: Nils Wagner wrote: Thank you for your note. It works fine for me with python2.5. However python2.3 results in ./gendocs.py -m 'scipy.linsolve.umfpack' Traceback (most recent call last): File ./gendocs.py, line

Re: [Numpy-discussion] Bugs using complex192

2008-01-07 Thread Nils Wagner
On Mon, 7 Jan 2008 19:42:40 +0100 Francesc Altet [EMAIL PROTECTED] wrote: A Monday 07 January 2008, Nils Wagner escrigué: numpy.sqrt(numpy.array([-1.0], dtype=numpy.complex192)) Traceback (most recent call last): File stdin, line 1, in module AttributeError: 'module' object has

Re: [Numpy-discussion] matrix rank of numpy array or matrix

2008-02-05 Thread Nils Wagner
On Tue, 5 Feb 2008 11:37:12 -0800 (PST) mark [EMAIL PROTECTED] wrote: Thanks. I rewrote the line as: from numpy.linalg import svd from numpy import sum,where def matrixrank(A,tol=1e-8): s = svd(A,compute_uv=0) return sum( where( stol, 1, 0 ) ) Would be nice to include

Re: [Numpy-discussion] partial_sum/adj_difference?

2008-02-19 Thread Nils Wagner
On Tue, 19 Feb 2008 13:50:04 -0700 Charles R Harris [EMAIL PROTECTED] wrote: On Feb 19, 2008 12:41 PM, Stefan van der Walt [EMAIL PROTECTED] wrote: Hi Neal On Tue, Feb 19, 2008 at 01:38:06PM -0500, Neal Becker wrote: Does numpy/scipy have a partial_sum and adj_difference function?

Re: [Numpy-discussion] numpy record array segfault

2008-02-19 Thread Nils Wagner
On Tue, 19 Feb 2008 17:10:10 -0600 Sameer DCosta [EMAIL PROTECTED] wrote: Hi, I'm getting a segfault when using python objects with record arrays. The code (below) basically assigns a single datetime object to a slice of a column in the record array and then python segfaults as soon as

[Numpy-discussion] boolean arrays

2009-11-26 Thread Nils Wagner
Hi all, is the following behaviour correct a = array(([True,True],[True,True])) b = array(([False,False],[False,False])) a+b array([[ True, True], [ True, True]]) I have expected False. Nils ___ NumPy-Discussion mailing list

Re: [Numpy-discussion] boolean arrays

2009-11-26 Thread Nils Wagner
On Thu, 26 Nov 2009 15:14:04 +0100 Fabrice Silva si...@lma.cnrs-mrs.fr wrote: Le jeudi 26 novembre 2009 à 14:44 +0100, Gael Varoquaux a écrit : On Thu, Nov 26, 2009 at 02:43:14PM +0100, Fabrice Silva wrote: Le jeudi 26 novembre 2009 à 18:26 +0200, Nadav Horesh a écrit : It is obvious

[Numpy-discussion] numpy.test() failures

2009-12-07 Thread Nils Wagner
numpy.__version__ '1.5.0.dev7980' FAIL: test_buffer_hashlib (test_regression.TestRegression) -- Traceback (most recent call last): File /home/nwagner/local/lib64/python2.6/site-packages/numpy/core/tests/test_regression.py,

[Numpy-discussion] svn log and blank entries

2010-01-15 Thread Nils Wagner
Hi all, An svn log CHANGELOG in svn/numpy yields some blank entries Is that intended ? r8055 | ariver | 2010-01-15 03:02:30 +0100 (Fr, 15 Jan 2010) | 1 line _

[Numpy-discussion] ipython

2010-01-15 Thread Nils Wagner
Hi all, I tried to install ipython via bzr If I run iypthon I get ipython Traceback (most recent call last): File /home/nwagner/local/bin/ipython, line 4, in module from IPython.core.ipapp import launch_new_instance ImportError: No module named ipapp Any idea ? Nils

[Numpy-discussion] Floating exception

2010-01-20 Thread Nils Wagner
Hi all, I found a strange problem when I try to import numpy python -v import numpy ... dlopen(/data/home/nwagner/local/lib/python2.5/site-packages/numpy/core/multiarray.so, 2); Floating exception Any idea ? Nils ___ NumPy-Discussion mailing

Re: [Numpy-discussion] Floating exception

2010-01-21 Thread Nils Wagner
On Thu, 21 Jan 2010 10:04:56 +0900 David Cournapeau da...@silveregg.co.jp wrote: Nils Wagner wrote: Hi all, I found a strange problem when I try to import numpy python -v import numpy ... dlopen(/data/home/nwagner/local/lib/python2.5/site-packages/numpy/core/multiarray.so, 2

Re: [Numpy-discussion] Floating exception

2010-01-21 Thread Nils Wagner
On Thu, 21 Jan 2010 23:35:29 +0900 David Cournapeau courn...@gmail.com wrote: On Thu, Jan 21, 2010 at 8:36 PM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote: On Thu, 21 Jan 2010 10:04:56 +0900  David Cournapeau da...@silveregg.co.jp wrote: Nils Wagner wrote: Hi all, I found a strange

[Numpy-discussion] Calling routines from a Fortran library using python

2010-02-18 Thread Nils Wagner
Hi all, I have a static library (*.a) compiled by gfortran but no source files. How can I call routines from that library using python ? Any pointer would be appreciated. Thanks in advance. Nils ___

Re: [Numpy-discussion] Calling routines from a Fortran library using python

2010-02-18 Thread Nils Wagner
On Thu, 18 Feb 2010 18:32:18 +0900 David Cournapeau da...@silveregg.co.jp wrote: Nils Wagner wrote: Hi all, I have a static library (*.a) compiled by gfortran but no source files. How can I call routines from that library using python ? Is there any kind of interface (.h, etc

Re: [Numpy-discussion] Calling routines from a Fortran library using python

2010-02-18 Thread Nils Wagner
On Thu, 18 Feb 2010 10:15:51 + (UTC) Neil Crighton neilcrigh...@gmail.com wrote: Nils Wagner nwagner at iam.uni-stuttgart.de writes: Hi David, you are right. It's a proprietary library. I found a header file (*.h) including prototype declarations of externally callable procedures

Re: [Numpy-discussion] Calling routines from a Fortran library using python

2010-02-18 Thread Nils Wagner
On Thu, 18 Feb 2010 19:21:03 +0900 David Cournapeau da...@silveregg.co.jp wrote: Nils Wagner wrote: On Thu, 18 Feb 2010 18:32:18 +0900 David Cournapeau da...@silveregg.co.jp wrote: Nils Wagner wrote: Hi all, I have a static library (*.a) compiled by gfortran but no source files

Re: [Numpy-discussion] Calling routines from a Fortran library using python

2010-02-18 Thread Nils Wagner
On Thu, 18 Feb 2010 19:30:10 +0900 David Cournapeau da...@silveregg.co.jp wrote: Nils Wagner wrote: How do I convert the .a library to a .so library ? You first uncompress the .a into a temporary directory, with ar x on Linux. Then, you group the .o together with gfortran -shared

Re: [Numpy-discussion] Calling routines from a Fortran library using python

2010-02-18 Thread Nils Wagner
On Thu, 18 Feb 2010 11:55:07 +0100 Matthieu Brucher matthieu.bruc...@gmail.com wrote: Ok I have extracted the *.o files from the static library. Applying the file command to the object files yields ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV), not stripped What's that

Re: [Numpy-discussion] Calling routines from a Fortran library using python

2010-02-18 Thread Nils Wagner
On Thu, 18 Feb 2010 15:32:12 +0100 Dag Sverre Seljebotn da...@student.matnat.uio.no wrote: David Cournapeau wrote: On Thu, Feb 18, 2010 at 10:22 PM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote: On Thu, 18 Feb 2010 11:55:07 +0100 Matthieu Brucher matthieu.bruc...@gmail.com wrote

[Numpy-discussion] numpy.test() failures in 2.0.0.dev8233

2010-02-21 Thread Nils Wagner
== FAIL: test_multiarray.TestNewBufferProtocol.test_export_endian -- Traceback (most recent call last): File

Re: [Numpy-discussion] Request for testing

2010-02-21 Thread Nils Wagner
On Sun, 21 Feb 2010 03:30:31 -0700 Charles R Harris charlesr.har...@gmail.com wrote: Hi All, I would be much obliged if some folks would run the attached script and report the output, numpy version, and python version. It just runs np.isinf(np.inf), which raises an invalid value warning

Re: [Numpy-discussion] numpy.test() failures in 2.0.0.dev8233

2010-02-21 Thread Nils Wagner
On Sun, 21 Feb 2010 13:22:41 +0200 Pauli Virtanen p...@iki.fi wrote: Hi, Please remind me what platform you are running on. Also, please update and re-run the tests, and check the output from import numpy as np from numpy.core.multiarray import memorysimpleview as memoryview dt =

Re: [Numpy-discussion] Calling routines from a Fortran library using python

2010-02-22 Thread Nils Wagner
On Thu, 18 Feb 2010 22:29:39 +0900 David Cournapeau courn...@gmail.com wrote: On Thu, Feb 18, 2010 at 10:22 PM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote: On Thu, 18 Feb 2010 11:55:07 +0100  Matthieu Brucher matthieu.bruc...@gmail.com wrote: Ok I have extracted the *.o files from

Re: [Numpy-discussion] Calling routines from a Fortran library using python

2010-02-22 Thread Nils Wagner
On Mon, 22 Feb 2010 22:18:23 +0900 David Cournapeau courn...@gmail.com wrote: On Mon, Feb 22, 2010 at 10:01 PM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote: ar x test.a gfortran -shared *.o -o libtest.so -lg2c to build a shared library. The additional option -lg2c was necessary due

Re: [Numpy-discussion] Calling routines from a Fortran library using python

2010-02-23 Thread Nils Wagner
On Mon, 22 Feb 2010 22:18:23 +0900 David Cournapeau courn...@gmail.com wrote: On Mon, Feb 22, 2010 at 10:01 PM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote: ar x test.a gfortran -shared *.o -o libtest.so -lg2c to build a shared library. The additional option -lg2c was necessary due

Re: [Numpy-discussion] NumPy SciPy with Snow Leopard 64-bit Py-2.6.4

2010-03-01 Thread Nils Wagner
On Mon, 1 Mar 2010 15:49:52 -0500 josef.p...@gmail.com wrote: On Mon, Mar 1, 2010 at 3:23 PM, Tom Loredo lor...@astro.cornell.edu wrote: Just wanted to report qualified success installing NumPy SciPy under a 64-bit build of Python-2.6.4 (universal framework) on OS X 10.6.2 (current Snow

Re: [Numpy-discussion] Calling routines from a Fortran library using python

2010-03-11 Thread Nils Wagner
On Mon, 22 Feb 2010 22:18:23 +0900 David Cournapeau courn...@gmail.com wrote: On Mon, Feb 22, 2010 at 10:01 PM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote: ar x test.a gfortran -shared *.o -o libtest.so -lg2c to build a shared library. The additional option -lg2c was necessary due

Re: [Numpy-discussion] Calling routines from a Fortran library using python

2010-03-11 Thread Nils Wagner
On Thu, 11 Mar 2010 13:42:43 +0100 Dag Sverre Seljebotn da...@student.matnat.uio.no wrote: Nils Wagner wrote: On Thu, 11 Mar 2010 13:01:33 +0100 Dag Sverre Seljebotn da...@student.matnat.uio.no wrote: Nils Wagner wrote: On Mon, 22 Feb 2010 22:18:23 +0900 David Cournapeau

[Numpy-discussion] python setup.py bdist --format=rpm

2010-06-08 Thread Nils Wagner
Hi all, I tried to build a rpm of numpy using python setup.py bdist --format=rpm removing 'numpy-2.0.0.dev8460' (and everything under it) copying dist/numpy-2.0.0.dev8460.tar.gz - build/bdist.linux-x86_64/rpm/SOURCES building RPMs rpm -ba --define _topdir

Re: [Numpy-discussion] SVD error in Numpy. Bug?

2008-03-18 Thread Nils Wagner
On Tue, 18 Mar 2008 12:48:31 -0700 (PDT) Lou Pecora [EMAIL PROTECTED] wrote: I have run into a failure of complex SVD in numpy (version='1.0.3.1'). The error is: File /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/numpy/linalg/linalg.py, line 767, in svd

[Numpy-discussion] Numpy test failure with latest svn

2008-03-20 Thread Nils Wagner
Hi all, I run numpy.test() with latest svn numpy.test() Numpy is installed in /usr/local/lib64/python2.5/site-packages/numpy Numpy version 1.0.5.dev4898 Python version 2.5 (r25:51908, Jan 10 2008, 18:01:52) [GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] Found 10/10 tests for

Re: [Numpy-discussion] Numpy test failure with latest svn

2008-03-20 Thread Nils Wagner
On Thu, 20 Mar 2008 18:12:22 +0100 Matthieu Brucher [EMAIL PROTECTED] wrote: Hi, With latest SVN and Ubuntu 7.10 (Python 2.5.1, gcc 4.1.3, 32bits computer), I don't have any error (BTW, I have 822 tests). Matthieu 2008/3/20, Nils Wagner [EMAIL PROTECTED]: Hi all, I run numpy.test

[Numpy-discussion] Segmentation fault check_float_repr

2008-03-25 Thread Nils Wagner
Hi all, Is this a known issue with latest svn numpy.test(verbosity=2) segfaults with check_float_repr (numpy.core.tests.test_scalarmath.TestRepr) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182894186368 (LWP 6930)] 0x003390e3d5e5 in __mpn_mul_1 () from

Re: [Numpy-discussion] sorting ndarray

2008-04-04 Thread Nils Wagner
On Thu, 3 Apr 2008 23:02:24 -0700 (PDT) harryos [EMAIL PROTECTED] wrote: i have a 1 dim numpy array D=array( [[ 3. , 2. , 1. , 4. , 5. , 1.5, 2.2]] ) i need to get this sorted in descending order and then access the elements . D.sort() will make D as [[ 1. 1.5 2. 2.2 3. 4.

[Numpy-discussion] Matrix powers

2008-04-06 Thread Nils Wagner
Hi all, I tried to use the new function matrix_power, but I can't find it. matrix_power(array([[0,1],[-1,0]]),10) Traceback (most recent call last): File stdin, line 1, in ? NameError: name 'matrix_power' is not defined numpy.__version__ '1.0.5.dev4968' Am I missing something ? Nils

[Numpy-discussion] test_financial.py

2008-04-08 Thread Nils Wagner
Hi all, several test failures are present in svn File /usr/lib/python2.4/site-packages/numpy/lib/tests/test_financial.py, line 4, in test_financial Failed example: rate(10,0,-3500,1) Exception raised: Traceback (most recent call last): File /usr/lib/python2.4/doctest.py,

Re: [Numpy-discussion] svd and eigh

2008-05-03 Thread Nils Wagner
On Fri, 2 May 2008 23:34:19 -0700 (PDT) wilson [EMAIL PROTECTED] wrote: I am trying out the eigenvectors related functions in numpy.linalg.I came across some portions where i have doubts. 1). i have an array X if i calculate L=dot(X,X.transpose()) can L be called the covariance matrix of

[Numpy-discussion] numpy.test() (failures=2, errors=3)

2008-05-24 Thread Nils Wagner
Hi all, I found two failures and three errors wrt numpy.test() numpy.__version__ '1.2.0.dev5228' == ERROR: Ticket #396 -- Traceback (most recent

Re: [Numpy-discussion] numpy.test() (failures=2, errors=3)

2008-05-24 Thread Nils Wagner
On Sat, 24 May 2008 08:49:12 -0600 Charles R Harris [EMAIL PROTECTED] wrote: On Sat, May 24, 2008 at 6:54 AM, Nils Wagner [EMAIL PROTECTED] wrote: Hi all, I found two failures and three errors wrt numpy.test() numpy.__version__ '1.2.0.dev5228' snip Hi Nils, can you

Re: [Numpy-discussion] segmentation fault

2008-05-28 Thread Nils Wagner
On Wed, 28 May 2008 11:07:16 -0400 Scott Ransom [EMAIL PROTECTED] wrote: On Wednesday 28 May 2008 10:51:20 am Alan McIntyre wrote: On Wed, May 28, 2008 at 10:30 AM, Keith Goodman [EMAIL PROTECTED] wrote: Does anyone else get this seg fault? def fn(): x = np.random.rand(5,2)

[Numpy-discussion] FAIL: Tests mask_rowcols

2008-06-07 Thread Nils Wagner
Hi all, I found one failure in numpy.test() with numpy 1.2.0.dev5257 == FAIL: Tests mask_rowcols. -- Traceback (most recent call last): File

[Numpy-discussion] ImportError: No module named numpy.distutils.core

2008-06-17 Thread Nils Wagner
Hi all, How do I install numpy from svn ? With latest svn I get /usr/bin/python setup.py install Traceback (most recent call last): File setup.py, line 96, in ? setup_package() File setup.py, line 68, in setup_package from numpy.distutils.core import setup ImportError: No

Re: [Numpy-discussion] ImportError: No module named numpy.distutils.core

2008-06-17 Thread Nils Wagner
On Tue, 17 Jun 2008 17:53:53 +0200 Nils Wagner [EMAIL PROTECTED] wrote: Hi all, How do I install numpy from svn ? With latest svn I get /usr/bin/python setup.py install Traceback (most recent call last): File setup.py, line 96, in ? setup_package() File setup.py, line 68

Re: [Numpy-discussion] ImportError: No module named numpy.distutils.core

2008-06-17 Thread Nils Wagner
On Tue, 17 Jun 2008 10:13:31 -0600 Charles R Harris [EMAIL PROTECTED] wrote: On Tue, Jun 17, 2008 at 10:04 AM, Nils Wagner [EMAIL PROTECTED] wrote: On Tue, 17 Jun 2008 17:53:53 +0200 Nils Wagner [EMAIL PROTECTED] wrote: Hi all, How do I install numpy from svn ? With latest svn

[Numpy-discussion] New numpy.test() failures

2008-07-02 Thread Nils Wagner
Hi all, If I run numpy.test() numpy.__version__ '1.2.0.dev5331' I obtain == FAIL: Tests count -- Traceback (most recent call last): File

Re: [Numpy-discussion] New numpy.test() failures

2008-07-02 Thread Nils Wagner
This shows up on all the 64-bit buildbots also. But the 32 bit Mac still works. Chuck There are also new test failures in scipy == FAIL: Tests the confidence intervals of the trimmed mean.

Re: [Numpy-discussion] New numpy.test() failures

2008-07-02 Thread Nils Wagner
On Wed, 02 Jul 2008 19:41:56 +0200 Nils Wagner [EMAIL PROTECTED] wrote: This shows up on all the 64-bit buildbots also. But the 32 bit Mac still works. Chuck I can reproduce the test failures on my old 32-bit laptop. Linux linux 2.6.11.4-21.17-default #1 Fri Apr 6 08:42:34 UTC 2007

Re: [Numpy-discussion] Branch cuts, inf, nan, C99 compliance

2008-07-20 Thread Nils Wagner
On Sun, 20 Jul 2008 02:34:48 -0600 Charles R Harris [EMAIL PROTECTED] wrote: On Sun, Jul 20, 2008 at 2:18 AM, Nils Wagner [EMAIL PROTECTED] wrote: On Sat, 19 Jul 2008 13:29:45 -0500 Travis E. Oliphant [EMAIL PROTECTED] wrote: Pauli Virtanen wrote: Hi all, Re: Ticket 854. I

Re: [Numpy-discussion] Branch cuts, inf, nan, C99 compliance

2008-07-20 Thread Nils Wagner
On Sun, 20 Jul 2008 12:10:23 + (UTC) Pauli Virtanen [EMAIL PROTECTED] wrote: Hi, Sorry, Sun, 20 Jul 2008 10:18:47 +0200, Nils Wagner wrote: ERROR: test_umath.TestC99.test_catanh(ufunc 'arctanh', (nan, nan), (nan, nan), '') FloatingPointError: invalid value encountered in arctanh

Re: [Numpy-discussion] numpy 1.1.rc2: win32 binaries

2008-07-28 Thread Nils Wagner
On Mon, 28 Jul 2008 14:26:59 +0900 David Cournapeau [EMAIL PROTECTED] wrote: Hi, After some delay, here are the win32 binaries for numpy 1.1.1rc2: http://www.ar.media.kyoto-u.ac.jp/members/david/numpy-1.1.1.dev5559-win32-superpack-python2.5.exe Notes on those binaries: -

Re: [Numpy-discussion] import numpy is slow

2008-07-31 Thread Nils Wagner
On Thu, 31 Jul 2008 10:12:22 -0700 Christopher Barker [EMAIL PROTECTED] wrote: David Cournapeau wrote: Christopher Barker wrote: On my OS-X box (10.4.11, python2.5, numpy '1.1.1rc2'), it takes about 7 seconds to import numpy! Hot or cold ? If hot, there is something horribly wrong with

[Numpy-discussion] FAIL: Test corrcoef 1 1D variable w/missing values

2008-08-07 Thread Nils Wagner
Hi all, Can someone reproduce the failure with numpy.__version__ '1.2.0.dev5618' == FAIL: Test corrcoef 1 1D variable w/missing values -- Traceback (most

[Numpy-discussion] ImportError: No module named my_module

2008-08-28 Thread Nils Wagner
== ERROR: Failure: ImportError (No module named my_module) -- Traceback (most recent call last): File

Re: [Numpy-discussion] ImportError: No module named my_module

2008-08-28 Thread Nils Wagner
On Thu, 28 Aug 2008 10:21:16 -0700 Matthew Brett [EMAIL PROTECTED] wrote: Hi Nils, I don't have an example.py in a checkout from a few seconds ago - it is possible it could be a stray file? Best, Matthew Running find . -name example.py in my svn/numpy directory yields

Re: [Numpy-discussion] ImportError: No module named my_module

2008-08-28 Thread Nils Wagner
On Thu, 28 Aug 2008 12:58:05 -0500 Robert Kern [EMAIL PROTECTED] wrote: On Thu, Aug 28, 2008 at 12:55, Matthew Brett [EMAIL PROTECTED] wrote: Hi, find . -name example.py in my svn/numpy directory yields ./doc/example.py ./doc/newdtype_example/example.py Ah - how strange - I just

[Numpy-discussion] f2py usage

2008-09-12 Thread Nils Wagner
Hi all, How can I use f2py ? I followed the instructions given at http://www.scipy.org/F2py To check if F2PY is installed correctly, I run /usr/bin/f2py Traceback (most recent call last): File /usr/bin/f2py, line 20, in ? from numpy.f2py import main ImportError: No module named

[Numpy-discussion] loadtxt

2008-10-02 Thread Nils Wagner
Hi all, how can I load ASCII data if the file contains characters instead of floats Traceback (most recent call last): File test_csv.py, line 2, in module A = loadtxt('ca6_sets.csv',dtype=char ,delimiter=';') NameError: name 'char' is not defined Nils

[Numpy-discussion] I/O options

2008-11-05 Thread Nils Wagner
Hi all, How can I save an array to a file with the following so called small field format (NASTRAN). Each row consists of ten fields of eight characters each. Field 10 is used only for optional continuation information when applicable.

[Numpy-discussion] reshape

2008-11-06 Thread Nils Wagner
Hi all, What can be done if the new shape is not compatible with the original shape ? The number of columns is fixed and should be 8. One could split the original array C C array([[ 0.e+00, 1.e-01], [ 4.1500e+01, 1.e-01], [ 4.1600e+01,

Re: [Numpy-discussion] reshape

2008-11-06 Thread Nils Wagner
On Thu, 6 Nov 2008 19:47:19 +0200 Nadav Horesh [EMAIL PROTECTED] wrote: Can you clarify? I have an array with a number of rows (nrows) and two columns. The first column entries correspond to x_i, the second column contains the corresponding values y_i = f(x_i) That array should be written

Re: [Numpy-discussion] reshape

2008-11-06 Thread Nils Wagner
On Thu, 6 Nov 2008 21:50:52 +0200 Nadav Horesh [EMAIL PROTECTED] wrote: A correction: lines_list = [cc[i:i+8] for i in range(1, len(cc), 8)] Nadav Hi Nadav, Thank you very much. My next question; How can I save lines_list to a file with the following so called small field format

[Numpy-discussion] numpy-docs and sphinx

2008-11-09 Thread Nils Wagner
Hi all, I tried to build the NumPy Reference Guide. svn/numpy-docs make html mkdir -p build ./ext/autosummary_generate.py source/reference/*.rst \ -p dump.xml -o source/reference/generated Traceback (most recent call last): File ./ext/autosummary_generate.py, line 18, in ? from

Re: [Numpy-discussion] numpy-docs and sphinx

2008-11-13 Thread Nils Wagner
On Mon, 10 Nov 2008 08:42:16 +0100 Nils Wagner [EMAIL PROTECTED] wrote: Hi all, I tried to build the NumPy Reference Guide. svn/numpy-docs make html mkdir -p build ./ext/autosummary_generate.py source/reference/*.rst \ -p dump.xml -o source/reference/generated Traceback (most

  1   2   >