[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:

[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

[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] 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] 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

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']]

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.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

[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

[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

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

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)

[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] 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

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-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] 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

[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 =

[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

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] 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

[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] 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] 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] NameError: global name 'matrix' is not defined

2009-09-16 Thread Nils Wagner
Ran 2235 tests in 25.593s FAILED (KNOWNFAIL=1, errors=28, failures=1) nose.result.TextTestResult run=2235 errors=28 failures=1 import numpy numpy.__version__ '1.4.0.dev7400' == ERROR: test_basic (test_defmatrix.TestAlgebra)

Re: [Numpy-discussion] NameError: global name 'matrix' is not defined

2009-09-16 Thread Nils Wagner
On Wed, 16 Sep 2009 11:41:15 -0500 Robert Kern robert.k...@gmail.com wrote: On Wed, Sep 16, 2009 at 11:39, Nils Wagnernwag...@iam.uni-stuttgart.de wrote: Ran 2235 tests in 25.593s FAILED (KNOWNFAIL=1, errors=28, failures=1) nose.result.TextTestResult run=2235 errors=28 failures=1 import

[Numpy-discussion] Ticket 1216

2009-09-11 Thread Nils Wagner
Hi all, Ticket http://projects.scipy.org/numpy/ticket/1216 can be closed. Cheers, Nils ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] DumbArray, LoadArray, Numeric -- numpy

2009-07-28 Thread Nils Wagner
Hi all, how can I import arrays in numpy which are stored by DumpArray in the old Numeric package ? Nils ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] New test failures

2009-07-28 Thread Nils Wagner
numpy.__version__ '1.4.0.dev7270' Python 2.5.1 on 64-bit box == FAIL: test_umath.TestComplexFunctions.test_precisions_consistent -- Traceback (most recent

[Numpy-discussion] numpy/core/code_generators/../src/multiarray/iterators.c:1778:could not find function name

2009-07-21 Thread Nils Wagner
Hi all, I cannot build numpy from svn. ... adding 'build/src.linux-x86_64-2.5/numpy/core/include/numpy/numpyconfig.h' to sources. executing numpy/core/code_generators/generate_numpy_api.py numpy/core/code_generators/../src/multiarray/iterators.c 1778 Traceback (most recent call last):

Re: [Numpy-discussion] numpy/core/code_generators/../src/multiarray/iterators.c:1778:could not find function name

2009-07-21 Thread Nils Wagner
On Tue, 21 Jul 2009 15:05:02 +0900 David Cournapeau da...@ar.media.kyoto-u.ac.jp wrote: Nils Wagner wrote: Hi all, I cannot build numpy from svn. Yes, I don't know why I did not caught this error on my machine. In any case, it is fixed in r7175. cheers, David Great. Works

Re: [Numpy-discussion] String manipulation

2009-07-21 Thread Nils Wagner
On Mon, 20 Jul 2009 12:44:23 -0700 Christopher Barker chris.bar...@noaa.gov wrote: Nils Wagner wrote: How can I split the second line in such a way that I get ['-1.00E+00', '-1.00E+00', '-1.00E+00', '-1.00E+00', '1.25E+00', '1.25E+00'] instead of ['-1.00E

Re: [Numpy-discussion] String manipulation

2009-07-21 Thread Nils Wagner
On Tue, 21 Jul 2009 02:56:28 -0400 Pierre GM pgmdevl...@gmail.com wrote: On Jul 21, 2009, at 2:42 AM, Nils Wagner wrote: Fixed-length fields are quite common e.g. in the area of Finite Element pre/postprocessing. Therefore It would be nice to have a function like line2array in numpy

Re: [Numpy-discussion] String manipulation

2009-07-20 Thread Nils Wagner
On Mon, 11 May 2009 10:48:14 -0400 Alan G Isaac ais...@american.edu wrote: On 5/11/2009 8:36 AM Nils Wagner apparently wrote: I would like to split strings made of digits after eight characters each. [l[i*8:(i+1)*8] for i in range(len(l)/8)] Alan Isaac

[Numpy-discussion] Universal file format

2009-07-17 Thread Nils Wagner
Hi all, Is there a Python tool to read and write files in the so-called universal format ? I found a Matlab implementation http://www.mathworks.com/matlabcentral/fileexchange/6395 Any pointer would be appreciated. Thanks in advance Nils

Re: [Numpy-discussion] roots and high-order polynomial

2009-07-06 Thread Nils Wagner
On Mon, 06 Jul 2009 16:53:42 +0200 Fabrice Silva si...@lma.cnrs-mrs.fr wrote: Le lundi 06 juillet 2009 à 08:16 -0600, Charles R Harris a écrit : Double precision breaks down at about degree 25 if things are well scaled, so that is suspicious in itself. Also, the companion matrix isn't

Re: [Numpy-discussion] roots and high-order polynomial

2009-07-03 Thread Nils Wagner
On Fri, 03 Jul 2009 11:48:45 +0200 Fabrice Silva si...@lma.cnrs-mrs.fr wrote: Hello Has anyone looked at the behaviour of the (polynomial) roots function for high-order polynomials ? I have an application which internally searches for the roots of a polynomial. It works nicely for order

Re: [Numpy-discussion] permutation symbol

2009-07-01 Thread Nils Wagner
On Tue, 30 Jun 2009 13:51:15 -0600 Charles R Harris charlesr.har...@gmail.com wrote: On Tue, Jun 30, 2009 at 12:26 PM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: On Tue, 30 Jun 2009 11:10:39 -0600 Charles R Harris charlesr.har...@gmail.com wrote: On Tue, Jun 30, 2009 at 10:56 AM

[Numpy-discussion] make html

2009-07-01 Thread Nils Wagner
Hi all, I am using numpy.__version__ '1.4.0.dev7094' make html yields /home/nwagner/svn/numpy/doc/source/reference/generated/numpy.trunc.rst:: WARNING: document isn't included in any toctree done preparing documents... done Exception occurred: 2%] reference/generalized_ufuncs ures

[Numpy-discussion] permutation symbol

2009-06-30 Thread Nils Wagner
Hi all, How can I build the following product with numpy q_i = \varepsilon_{ijk} q_{kj} where \varepsilon_{ijk} denotes the permutation symbol. Nils http://mathworld.wolfram.com/PermutationSymbol.html ___ Numpy-discussion mailing list

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Nils Wagner
On Tue, 30 Jun 2009 11:22:34 +0200 Nils Wagner nwag...@iam.uni-stuttgart.de wrote: Hi all, How can I build the following product with numpy q_i = \varepsilon_{ijk} q_{kj} where \varepsilon_{ijk} denotes the permutation symbol. Nils Sorry for replying to myself. The permutation symbol

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Nils Wagner
On Tue, 30 Jun 2009 10:27:05 -0600 Charles R Harris charlesr.har...@gmail.com wrote: On Tue, Jun 30, 2009 at 5:11 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: On Tue, 30 Jun 2009 11:22:34 +0200 Nils Wagner nwag...@iam.uni-stuttgart.de wrote: Hi all, How can I build

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Nils Wagner
On Tue, 30 Jun 2009 11:10:39 -0600 Charles R Harris charlesr.har...@gmail.com wrote: On Tue, Jun 30, 2009 at 10:56 AM, Charles R Harris charlesr.har...@gmail.com wrote: On Tue, Jun 30, 2009 at 10:40 AM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote: On Tue, 30 Jun 2009 10:27:05

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Nils Wagner
On Tue, 30 Jun 2009 11:30:51 -0700 (PDT) David Goldsmith d_l_goldsm...@yahoo.com wrote: Great, Nils! Now, can you generalize it to N-D for us? ;-) DG Just curious - Do you have any application for N-D case in mind ? Nils ___

[Numpy-discussion] Test bug in reduceat with structured arrays copied for speed.

2009-06-19 Thread Nils Wagner
Hi all, Is this a known failure ? I am using 1.4.0.dev7069 == FAIL: Test bug in reduceat with structured arrays copied for speed. -- Traceback (most recent

[Numpy-discussion] numpy port to Jython

2009-06-17 Thread Nils Wagner
Hi all, Is there a port of numpy/scipy to Jython ? Any pointer would be appreciated. Thanks in advance Nils ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

Re: [Numpy-discussion] numpy port to Jython

2009-06-17 Thread Nils Wagner
On Wed, 17 Jun 2009 15:00:23 -0400 David Warde-Farley d...@cs.toronto.edu wrote: On 17-Jun-09, at 2:18 PM, Nils Wagner wrote: Is there a port of numpy/scipy to Jython ? Any pointer would be appreciated. Folks have successfully gotten it working from IronPython (the .NET CLR) via

[Numpy-discussion] skiprows option in loadtxt

2009-05-20 Thread Nils Wagner
Hi all, Is the value of skiprows in loadtxt restricted to values in [0-10] ? It doesn't work for skiprows=11. Nils ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] skiprows option in loadtxt

2009-05-20 Thread Nils Wagner
On Wed, 20 May 2009 10:16:08 -0500 Ryan May rma...@gmail.com wrote: On Wed, May 20, 2009 at 10:04 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: Hi all, Is the value of skiprows in loadtxt restricted to values in [0-10] ? It doesn't work for skiprows=11. Works for me: s

Re: [Numpy-discussion] linear algebra help

2009-05-16 Thread Nils Wagner
On Sat, 16 May 2009 16:01:00 +0300 Quilby qui...@gmail.com wrote: Hi- This is what I need to do- I have this equation- Ax = y Where A is a rational m*n matrix (m=n), and x and y are vectors of the right size. I know A and y, I don't know what x is equal to. I also know that there

[Numpy-discussion] List of arrays

2009-05-11 Thread Nils Wagner
Hi all, How can I convert a list of arrays into one array ? Nils data [array([ 40. , 285.6, 45. , 285.3, 50. , 285.1, 55. , 284.8]), array([ 60. , 284.5, 65. , 282.8, 70. , 281.1, 75. , 280. ]), array([ 80. , 278.8, 85. , 278.1, 90. , 277.4, 95. , 276.9]),

Re: [Numpy-discussion] List of arrays

2009-05-11 Thread Nils Wagner
On Mon, 11 May 2009 06:54:45 -0400 Alan G Isaac ais...@american.edu wrote: On 5/11/2009 6:28 AM Nils Wagner apparently wrote: How can I convert a list of arrays into one array ? Do you mean one long array, so that ``concatenate`` is appropriate, or a 2d array, in which case you can just

[Numpy-discussion] String manipulation

2009-05-11 Thread Nils Wagner
Hi all, Please consider two strings line_a '12345678abcdefgh12345678' line_b '12345678 abcdefgh 12345678' line_b.split() ['12345678', 'abcdefgh', '12345678'] Is it possible to split line_a such that the output is ['12345678', 'abcdefgh', '12345678'] Nils

[Numpy-discussion] FAIL: Test bug in reduceat with structured arrays

2009-05-11 Thread Nils Wagner
Hi all, Can someone reproduce the following failure ? I am using numpy.__version__ '1.4.0.dev6983' == FAIL: Test bug in reduceat with structured arrays copied for speed.

Re: [Numpy-discussion] String manipulation

2009-05-11 Thread Nils Wagner
On Mon, 11 May 2009 14:25:46 +0200 Francesc Alted fal...@pytables.org wrote: A Monday 11 May 2009, Nils Wagner escrigué: Hi all, Please consider two strings line_a '12345678abcdefgh12345678' line_b '12345678 abcdefgh 12345678' line_b.split() ['12345678', 'abcdefgh', '12345678

Re: [Numpy-discussion] FAIL: Test bug in reduceat with structured arrays

2009-05-11 Thread Nils Wagner
On Mon, 11 May 2009 14:05:13 + (UTC) Pauli Virtanen p...@iki.fi wrote: Mon, 11 May 2009 14:06:07 +0200, Nils Wagner kirjoitti: Can someone reproduce the following failure ? I am using numpy.__version__ '1.4.0.dev6983

[Numpy-discussion] cannot build numpy from trunk

2009-05-05 Thread Nils Wagner
... In file included from numpy/core/src/multiarray/ctors.c:16, from numpy/core/src/multiarray/multiarraymodule_onefile.c:13: numpy/core/src/multiarray/ctors.h: At top level: numpy/core/src/multiarray/ctors.h:68: warning: conflicting types for ‘byte_swap_vector’

Re: [Numpy-discussion] cannot build numpy from trunk

2009-05-05 Thread Nils Wagner
On Tue, 5 May 2009 10:04:11 -0600 Charles R Harris charlesr.har...@gmail.com wrote: On Tue, May 5, 2009 at 9:50 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: ... In file included from numpy/core/src/multiarray/ctors.c:16, from numpy/core/src/multiarray

Re: [Numpy-discussion] cannot build numpy from trunk

2009-05-05 Thread Nils Wagner
On Tue, 5 May 2009 12:44:31 -0600 Charles R Harris charlesr.har...@gmail.com wrote: On Tue, May 5, 2009 at 10:12 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: On Tue, 5 May 2009 10:04:11 -0600 Charles R Harris charlesr.har...@gmail.com wrote: On Tue, May 5, 2009 at 9:50 AM, Nils

[Numpy-discussion] stop criterion for an alternating signal

2009-05-04 Thread Nils Wagner
Hi all, How can I define a stop criterion for an alternating series ? Any pointer would be appreciated. Nils from numpy import loadtxt, arange from pylab import plot, show A = loadtxt('alternate.dat') m = len(A) x = arange(0,m) plot(x,A) show() alternate.dat Description: MPEG movie

Re: [Numpy-discussion] stop criterion for an alternating signal

2009-05-04 Thread Nils Wagner
On Mon, 4 May 2009 10:52:59 -0600 Charles R Harris charlesr.har...@gmail.com wrote: On Mon, May 4, 2009 at 10:48 AM, Nils Wagner nwag...@iam.uni-stuttgart.dewrote: Hi all, How can I define a stop criterion for an alternating series ? Any pointer would be appreciated. Where does

[Numpy-discussion] String manipulation

2009-04-23 Thread Nils Wagner
Hi all, How can I obtain the position of the minus sign within the following string ? liste[1] '1.5-te' Nils ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

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

2009-04-13 Thread Nils Wagner
On Sun, 12 Apr 2009 12:56:46 -0600 Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Apr 12, 2009 at 12:52 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Sun, Apr 12, 2009 at 12:17 PM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote

[Numpy-discussion] survey of freely available software for the solution of linear algebra problems

2009-04-13 Thread Nils Wagner
FWIW, From: Jack Dongarra donga...@cs.utk.edu Date: Tue, 7 Apr 2009 12:00:01 -0400 Subject: Survey of linear algebra software We have updated the survey of freely available software for the solution of linear algebra problems. Send us comments if you see a problem.

[Numpy-discussion] numpy.test() errors r6862

2009-04-12 Thread Nils Wagner
== ERROR: test suite -- Traceback (most recent call last): File /home/nwagner/local/lib64/python2.6/site-packages/nose-0.10.4-py2.6.egg/nose/suite.py, line

[Numpy-discussion] cannot build numpy from trunk

2009-04-05 Thread Nils Wagner
Hi all, I cannot build numpy from trunk compile options: '-Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.6 -c' gcc: _configtest.c _configtest.c:1: warning: conflicting types for built-in function ‘asin’ _configtest.c:2: warning: conflicting types for built-in function ‘cos’

[Numpy-discussion] manipulating lists

2009-03-24 Thread Nils Wagner
Hi all, How can I extract the numbers from the following list ['', '-1.878722E-08,', '3.835992E-11', '1.192970E-03,-5.080192E-06'] It is easy to extract liste[1] '-1.878722E-08,' liste[2] '3.835992E-11' but liste[3] '1.192970E-03,-5.080192E-06' How can I accomplish that ? Nils

Re: [Numpy-discussion] manipulating lists

2009-03-24 Thread Nils Wagner
On Tue, 24 Mar 2009 10:27:18 -0400 josef.p...@gmail.com wrote: On Tue, Mar 24, 2009 at 10:14 AM, Nils Wagner nwag...@iam.uni-stuttgart.de wrote: Hi all, How can I extract the numbers from the following list ['', '-1.878722E-08,', '3.835992E-11', '1.192970E-03,-5.080192E-06'] It is easy

Re: [Numpy-discussion] test failure in numpy trunk

2009-03-24 Thread Nils Wagner
On Tue, 24 Mar 2009 11:20:53 -0600 Charles R Harris charlesr.har...@gmail.com wrote: 2009/3/24 Darren Dale dsdal...@gmail.com Hello, I just performed an svn update, deleted my old build/ and site-packages/numpy*, reinstalled, and I see a new test failure on a 64 bit linux machine:

Re: [Numpy-discussion] numpy for 64 bits machine

2009-03-20 Thread Nils Wagner
On Fri, 20 Mar 2009 11:09:49 +0100 Vincent Thierion vincent.thier...@ema.fr wrote: Hello, Is there an easy way to build numpy on remote 64 bits machines on which I don't have any roots privilege ? python setup.py install --prefix=$HOME/local Nils

[Numpy-discussion] dot product

2009-03-10 Thread Nils Wagner
Hi all, The dot product can be defined for two vectors x and y by x·y=|x||y| \cos(\theta), where theta is the angle between the vectors and |x| is the norm. Now assume that we have arrays(matrices) X = [x_1, ..., x_m] Y = [y_1, ..., y_s] m s Is there a built-in function to

[Numpy-discussion] AttributeError: 'str' object has no attribute 'seek'

2009-03-02 Thread Nils Wagner
Hi all, I encountered a problem wrt loadtxt. Traceback (most recent call last): File mac.py, line 9, in module mac = loadtxt('mac_diff.pmat.gz',skiprows=27,comments='!',usecols=(0,2,4),dtype='|S40') File /data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/io.py, line

Re: [Numpy-discussion] AttributeError: 'str' object has no attribute 'seek'

2009-03-02 Thread Nils Wagner
On Mon, 2 Mar 2009 22:08:22 +0200 Stéfan van der Walt ste...@sun.ac.za wrote: Nils, 2009/3/2 Nils Wagner nwag...@iam.uni-stuttgart.de: I encountered a problem wrt loadtxt. File /data/home/nwagner/local/lib/python2.5/site-packages/numpy/lib/io.py, line 384, in loadtxt fh

[Numpy-discussion] ValueError: invalid literal for float()

2009-02-27 Thread Nils Wagner
Hi all, Is it possible to modify the behaviour of float wrt the following situation permas_M[0,2] '1.569809265137D+01' float(permas_M[0,2]) Traceback (most recent call last): File stdin, line 1, in module ValueError: invalid literal for float(): 1.569809265137D+01 The following

Re: [Numpy-discussion] RFR: 995 - numpy.load can't handle gzip file handles

2009-02-22 Thread Nils Wagner
On Sat, 21 Feb 2009 12:58:14 +0200 Stéfan van der Walt ste...@sun.ac.za wrote: Hi, Based on an example on Effbot, I implemented a workaround for reverse seeking in gzip files. I need someone with Python 2.4 to review: http://www.scipy.org/scipy/numpy/ticket/995 Thanks! Stéfan

Re: [Numpy-discussion] RFR: 995 - numpy.load can't handle gzip file handles

2009-02-22 Thread Nils Wagner
On Sun, 22 Feb 2009 13:03:03 +0200 Stéfan van der Walt ste...@sun.ac.za wrote: Hi Nils, 2009/2/22 Nils Wagner nwag...@iam.uni-stuttgart.de: Done. See http://www.scipy.org/scipy/numpy/ticket/995 for details. Thanks. Did you have a NumPy array stored with numpy.save in test.gz? I

Re: [Numpy-discussion] RFR: 991 - Make savez able to write ZIP64 files

2009-02-22 Thread Nils Wagner
On Sun, 22 Feb 2009 18:37:05 +0200 Stéfan van der Walt ste...@sun.ac.za wrote: Hi all, Please review the patch attached to http://scipy.org/scipy/numpy/ticket/991 which enables ZIP64 extensions when saving and loading zipped data under Python = 2.5 Thanks, Stéfan Hi Stefan,

Re: [Numpy-discussion] RFR: 991 - Make savez able to write ZIP64 files

2009-02-22 Thread Nils Wagner
On Sun, 22 Feb 2009 22:18:32 +0200 Stéfan van der Walt ste...@sun.ac.za wrote: Hi Nils 2009/2/22 Nils Wagner nwag...@iam.uni-stuttgart.de: http://scipy.org/scipy/numpy/ticket/991 which enables ZIP64 extensions when saving and loading zipped data under Python = 2.5 You can just run

Re: [Numpy-discussion] RFR: 995 - numpy.load can't handle gzip file handles

2009-02-21 Thread Nils Wagner
On Sat, 21 Feb 2009 12:58:14 +0200 Stéfan van der Walt ste...@sun.ac.za wrote: Hi, Based on an example on Effbot, I implemented a workaround for reverse seeking in gzip files. I need someone with Python 2.4 to review: http://www.scipy.org/scipy/numpy/ticket/995 Thanks! Stéfan

[Numpy-discussion] Summary of ticket 937

2009-02-19 Thread Nils Wagner
Hi all, The summary of ticket 937 is incomplete. It should be Complex matrices and lstsq. http://projects.scipy.org/scipy/numpy/ticket/937 Nils ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

[Numpy-discussion] astype

2009-02-14 Thread Nils Wagner
Hi all, How can I convert an array with string elements to an array with float entries ? coord_info[:,1] array(['0,0', '100,0', '200,0', '300,0', '400,0', '500,0', '600,0', '700,0', '800,0', '0.0', '100.0', '200.0', '300.0', '400.0', '500.0', '600.0', '700.0', '800.0', '0.0',

Re: [Numpy-discussion] astype

2009-02-14 Thread Nils Wagner
On Sat, 14 Feb 2009 17:22:43 +0100 Nils Wagner nwag...@iam.uni-stuttgart.de wrote: Hi all, How can I convert an array with string elements to an array with float entries ? coord_info[:,1] array(['0,0', '100,0', '200,0', '300,0', '400,0', '500,0', '600,0', '700,0', '800,0', '0.0

[Numpy-discussion] Comparison of arrays

2009-02-09 Thread Nils Wagner
Hi all, I have two integer arrays of different shape, e.g. a array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) b array([ 3, 4, 5, 6, 7, 8, 9, 10]) How can I extract the values that belong to the array a exclusively i.e. array([1,2]) ? Nils

Re: [Numpy-discussion] Comparison of arrays

2009-02-09 Thread Nils Wagner
On Mon, 9 Feb 2009 09:45:02 +0100 Francesc Alted fal...@pytables.org wrote: A Monday 09 February 2009, Nils Wagner escrigué: Hi all, I have two integer arrays of different shape, e.g. a array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) b array([ 3, 4, 5, 6, 7, 8, 9, 10]) How

[Numpy-discussion] ERROR: Test flat on masked_matrices

2009-02-07 Thread Nils Wagner
== ERROR: Test flat on masked_matrices -- Traceback (most recent call last): File /usr/local/lib64/python2.5/site-packages/numpy/ma/tests/test_core.py, line

[Numpy-discussion] xblas and numpy

2009-02-06 Thread Nils Wagner
Hi all, Just curious. Is it possible to use xblas with numpy ? http://www.netlib.org/xblas/ Nils ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

  1   2   >