Re: [Numpy-discussion] example reading binary Fortran file

2013-02-12 Thread Pradeep Jha
Neil Martinsen-Burrell wartburg.edu> writes: > > On 2009-05-29 10:12 , David Froger wrote: > > I think the FortranFile class is not intended to read arrays written > > with the syntax 'write(11) array1, array2, array3' (correct me if I'm > > wrong). This is the use in the laboratory where I

Re: [Numpy-discussion] How to upload to pypi

2013-02-12 Thread Ondřej Čertík
David, On Tue, Feb 12, 2013 at 6:46 AM, David Cournapeau wrote: > On Tue, Feb 12, 2013 at 5:49 AM, Ondřej Čertík > wrote: >> Hi, >> >> I have uploaded the NumPy 1.7.0 source distribution to pypi: >> >> http://pypi.python.org/pypi/numpy/1.7.0 >> >> I did it by uploading the file PKG-INFO from nu

Re: [Numpy-discussion] How to upload to pypi

2013-02-12 Thread Ondřej Čertík
Hi Robert, On Tue, Feb 12, 2013 at 2:40 AM, Robert Kern wrote: > On Tue, Feb 12, 2013 at 5:49 AM, Ondřej Čertík > wrote: >> Hi, >> >> I have uploaded the NumPy 1.7.0 source distribution to pypi: >> >> http://pypi.python.org/pypi/numpy/1.7.0 >> >> I did it by uploading the file PKG-INFO from num

Re: [Numpy-discussion] View on sliced array without copy

2013-02-12 Thread Nicolas Rougier
I did not know that. Thanks for the clear explanation. Nicolas On Feb 12, 2013, at 19:25 , Jaime Fernández del Río wrote: > On Tue, Feb 12, 2013 at 9:53 AM, Nicolas Rougier > wrote: > Did I do something wrong or is it expected behavior ? > > Try: > > print (Z.view('f4'))[:50].base.base is

[Numpy-discussion] Help with python in C code

2013-02-12 Thread santhu kumar
Hello all, I was able to successfully embed python code into C code. The basic skeleton is something like this : In C code : PyObject *pName, *pModule, *pFunc,*pArgs,*pReturn; PyArrayObject *cusForce; Py_Initialize(); import_array(); // required while using numpy arrays in C // Call some

Re: [Numpy-discussion] numpy.test('full') errors and failures

2013-02-12 Thread Ralf Gommers
On Tue, Feb 12, 2013 at 1:28 PM, Daπid wrote: > On 12 February 2013 10:55, Dominic Steinitz wrote: > > Running unit tests for numpy > > NumPy version 1.8.0.dev-4600b2f > > I can see this is not the stable version, try the 1.7 that has been > just released. Sending the full output of this test

Re: [Numpy-discussion] View on sliced array without copy

2013-02-12 Thread Jaime Fernández del Río
On Tue, Feb 12, 2013 at 9:53 AM, Nicolas Rougier wrote: > Did I do something wrong or is it expected behavior ? > Try: print (Z.view('f4'))[:50].base.base is Z # True print Z[:50].view('f4').base.base is Z # True This weird behaviour is fixed in the just-released numpy 1.7. From the notes of

[Numpy-discussion] View on sliced array without copy

2013-02-12 Thread Nicolas Rougier
Hi, I'm trying to get a view on a sliced array without copy but I'm not able to do it as illustrated below: dtype = np.dtype( [('color', 'f4', 4)] ) Z = np.zeros(100, dtype=dtype) print Z.view('f4').base is Z# True print Z[:50].base is Z # True print (Z.view('f4'))[:50]

Re: [Numpy-discussion] number of tests

2013-02-12 Thread Davide Del Vento
I should have added: $ lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: RedHatEnterpriseServer Description:Red Hat Enterprise Linux Server release 6.2 (Santiago) Release:6.2 Codena

Re: [Numpy-discussion] How to upload to pypi

2013-02-12 Thread David Cournapeau
On Tue, Feb 12, 2013 at 5:49 AM, Ondřej Čertík wrote: > Hi, > > I have uploaded the NumPy 1.7.0 source distribution to pypi: > > http://pypi.python.org/pypi/numpy/1.7.0 > > I did it by uploading the file PKG-INFO from numpy-1.7.0.tar.gz. It > said "Error processing form. Form Failure; reset form s

Re: [Numpy-discussion] pip install numpy throwing a lot of output.

2013-02-12 Thread Francesc Alted
On 2/12/13 3:18 PM, Daπid wrote: > On 12 February 2013 14:58, Francesc Alted wrote: >> Yes, I think that's expected. Just to make sure, can you send some >> excerpts of the errors that you are getting? > Actually the errors are at the beginning of the process, so they are > out of the reach of my

Re: [Numpy-discussion] pip install numpy throwing a lot of output.

2013-02-12 Thread Daπid
On 12 February 2013 14:58, Francesc Alted wrote: > Yes, I think that's expected. Just to make sure, can you send some > excerpts of the errors that you are getting? Actually the errors are at the beginning of the process, so they are out of the reach of my terminal right now. Seems like pip doesn

Re: [Numpy-discussion] pip install numpy throwing a lot of output.

2013-02-12 Thread Francesc Alted
On 2/12/13 1:37 PM, Daπid wrote: > I have just upgraded numpy with pip on Linux 64 bits with Python 2.7, > and I got *a lot* of output, so much it doesn't fit in the terminal. > Most of it are gcc commands, but there are many different errors > thrown by the compiler. Is this expected? Yes, I thin

[Numpy-discussion] pip install numpy throwing a lot of output.

2013-02-12 Thread Daπid
I have just upgraded numpy with pip on Linux 64 bits with Python 2.7, and I got *a lot* of output, so much it doesn't fit in the terminal. Most of it are gcc commands, but there are many different errors thrown by the compiler. Is this expected? I am not too worried as the test suite passes, but p

Re: [Numpy-discussion] number of tests

2013-02-12 Thread Daπid
On 12 February 2013 04:54, Davide Del Vento wrote: > Ran 3587 tests in 22.211s > FAILED (KNOWNFAIL=5, SKIP=11, failures=2) > > Whereas in a remote batch node (with a script) I get: > > Ran 3229 tests in 15.642s > OK (KNOWNFAIL=5, SKIP=19) On my machine (linux 64 bits) In [3]: np.test('full') Run

Re: [Numpy-discussion] numpy.test('full') errors and failures

2013-02-12 Thread Daπid
On 12 February 2013 10:55, Dominic Steinitz wrote: > Running unit tests for numpy > NumPy version 1.8.0.dev-4600b2f I can see this is not the stable version, try the 1.7 that has been just released. ___ NumPy-Discussion mailing list NumPy-Discussion@sci

Re: [Numpy-discussion] How to upload to pypi

2013-02-12 Thread Robert Kern
On Tue, Feb 12, 2013 at 5:49 AM, Ondřej Čertík wrote: > Hi, > > I have uploaded the NumPy 1.7.0 source distribution to pypi: > > http://pypi.python.org/pypi/numpy/1.7.0 > > I did it by uploading the file PKG-INFO from numpy-1.7.0.tar.gz. It > said "Error processing form. Form Failure; reset form s

[Numpy-discussion] numpy.test('full') errors and failures

2013-02-12 Thread Dominic Steinitz
Apologies if this is the wrong mailing list. I have installed bumpy using the excellent script here: http://fonnesbeck.github.com/ScipySuperpack/ I ran numpy.test('full') and got several errors. Should I be worried? Thanks, Dominic. PS I can send the full errors if that would be helpful. >>>