[Numpy-discussion] Adding `offset` argument to np.lib.format.open_memmap and np.load

2011-02-24 Thread Jon Olav Vik
https://github.com/jonovik/numpy/compare/master...offset_memmap The `offset` argument to np.memmap enables memory-mapping a portion of a file on disk to a memory-mapped Numpy array. Memory-mapping can also be done with np.load, but it uses np.lib.format.open_memmap, which has no offset

[Numpy-discussion] Problems with numpy

2011-02-24 Thread Mustapha BOUIKHIF
Hello all, I am having problems with numpy (version 1.5.1) when executing this command as root, evry thing is OK: python -Wd -c 'import numpy; numpy.test()' Running unit tests for numpy NumPy version 1.5.1 NumPy is installed in /usr/local/lib64/python2.6/site-packages/numpy Python version 2.6

Re: [Numpy-discussion] Problems with numpy

2011-02-24 Thread Benjamin Root
On Thu, Feb 24, 2011 at 10:04 AM, Mustapha BOUIKHIF mustapha.bouik...@idris.fr wrote: Hello all, I am having problems with numpy (version 1.5.1) when executing this command as root, evry thing is OK: python -Wd -c 'import numpy; numpy.test()' Running unit tests for numpy NumPy version

Re: [Numpy-discussion] Problems with numpy

2011-02-24 Thread Mustapha BOUIKHIF
Benjamin, I am not in numpy install dir and have the error however: #python Python 2.6 (r26:66714, Nov 9 2010, 01:31:57) [GCC 4.3.4 [gcc-4_3-branch revision 152973]] on linux2 Type help, copyright, credits or license for more information. import os os.getcwd() *'/home/idris/cos/scos190'*

Re: [Numpy-discussion] Problems with numpy

2011-02-24 Thread Benjamin Root
On Thu, Feb 24, 2011 at 10:35 AM, Mustapha BOUIKHIF mustapha.bouik...@idris.fr wrote: Benjamin, I am not in numpy install dir and have the error however: #python Python 2.6 (r26:66714, Nov 9 2010, 01:31:57) [GCC 4.3.4 [gcc-4_3-branch revision 152973]] on linux2 Type help, copyright,

Re: [Numpy-discussion] Problems with numpy

2011-02-24 Thread Pauli Virtanen
Thu, 24 Feb 2011 10:40:17 -0600, Benjamin Root wrote: [clip] import numpy Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib64/python2.6/site-packages/numpy/__init__.py, line 127, in module raise ImportError(msg) ImportError: Error importing

Re: [Numpy-discussion] Problems with numpy

2011-02-24 Thread Pauli Virtanen
Thu, 24 Feb 2011 16:47:14 +, Pauli Virtanen wrote: Another possible reason is that Numpy was installed wrong (as the numpy.__config__ module is apparently missing). Numpy needs to be installed via python setup.py install, manually copying the numpy directory is not enough. Or, the

[Numpy-discussion] blank values '--'

2011-02-24 Thread Bryan Woods
Hello, I am loading in data from the GRIB2 files using PyNIO. Once I load them into numpy arrays I am left with a halo of values near the array boundaries that appear to be empty. When I print them or use them in conditional statements I see values of '--'. I'd like to turn these values into

Re: [Numpy-discussion] blank values '--'

2011-02-24 Thread Pauli Virtanen
Thu, 24 Feb 2011 13:00:09 -0500, Bryan Woods wrote: [clip] As an example if I print the array I see: [[-- -- -- ..., -- -- --] [-- -- -- ..., -- -- --] [-- -- -- ..., -- -- --] ..., [-- -- -- ..., -- -- --] [-- -- -- ..., -- -- --] [-- -- -- ..., -- -- --]] though I know

Re: [Numpy-discussion] blank values '--'

2011-02-24 Thread Benjamin Root
On Thu, Feb 24, 2011 at 12:00 PM, Bryan Woods bwo...@aer.com wrote: Hello, I am loading in data from the GRIB2 files using PyNIO. Once I load them into numpy arrays I am left with a halo of values near the array boundaries that appear to be empty. When I print them or use them in conditional

Re: [Numpy-discussion] blank values '--'

2011-02-24 Thread David Brown
Hi Bryan, By default PyNIO returns a NumPy masked array if a _FillValue attribute is found for the variable you are trying to load. It looks like Pauli Virtenen has pointed to the relevant NumPy documentation. Using masked array methods you can discover the values that are masked and print as

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

2011-02-24 Thread Frédéric Bastien
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.distutils.__config__.blas_opt_info['libraries']]

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] Porting numpy to Python3

2011-02-24 Thread Algis Kabaila
Are there plans to port numpy to Python3? In particular, when will the packages of Linear Algebra (viz matrix inversion) be available in Python 3 compatible modules. Because of the importance of numpy in many scientific endeavours is so great, information of the availability in Python 3 mode

Re: [Numpy-discussion] Porting numpy to Python3

2011-02-24 Thread Shao Hong
Hi correct me if I am wrong, I thought there is package ported for python 3.1 already? On 25 Feb 2011 10:07, Algis Kabaila akaba...@pcug.org.au wrote: Are there plans to port numpy to Python3? In particular, when will the packages of Linear Algebra (viz matrix inversion) be available in Python 3

Re: [Numpy-discussion] Porting numpy to Python3

2011-02-24 Thread Algis Kabaila
If there is, then its great news (for me). Where can I check it out? Thanks for responding - Al. On Friday 25 February 2011 13:14:31 Shao Hong wrote: Hi correct me if I am wrong, I thought there is package ported for python 3.1 already? -- Algis

Re: [Numpy-discussion] Porting numpy to Python3

2011-02-24 Thread Bruce Southey
On Thu, Feb 24, 2011 at 9:03 PM, Algis Kabaila akaba...@pcug.org.au wrote: If there is, then its great news (for me).  Where can I check it out? Thanks for responding - Al. On Friday 25 February 2011 13:14:31 Shao Hong wrote: Hi correct me if I am wrong, I thought there is package ported

Re: [Numpy-discussion] Porting numpy to Python3

2011-02-24 Thread Algis Kabaila
On Friday 25 February 2011 14:22:04 Bruce Southey wrote: Python 3.1+ support occurred with numpy 1.5 that was released last year (2010-08-31) - 1.5.1 is the current release. scipy 0.9 due very soon (release candidates are available at http://sourceforge.net/projects/scipy/) also supports

Re: [Numpy-discussion] Porting numpy to Python3

2011-02-24 Thread Algis Kabaila
On Friday 25 February 2011 14:44:07 Algis Kabaila wrote: On Friday 25 February 2011 14:22:04 Bruce Southey wrote: Python 3.1+ support occurred with numpy 1.5 that was released last year (2010-08-31) - 1.5.1 is the current release. scipy 0.9 due very soon (release candidates are available

Re: [Numpy-discussion] Porting numpy to Python3

2011-02-24 Thread Scott Sinclair
On 25 February 2011 06:22, Algis Kabaila akaba...@pcug.org.au wrote: On Friday 25 February 2011 14:44:07 Algis Kabaila wrote: PS: a little investigation shows that my version of numpy is 1.3.0 and scipy is 0.7.2 - so ubuntu binaries are way behind the bleeding edge... ... and built for the