Re: [Numpy-discussion] Porting numpy to Python3

2011-02-24 Thread Scott Sinclair
On 25 February 2011 06:22, Algis Kabaila 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 system Python (2.

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

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 support

Re: [Numpy-discussion] Porting numpy to Python3

2011-02-24 Thread Bruce Southey
On Thu, Feb 24, 2011 at 9:03 PM, Algis Kabaila 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 for pyth

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 http://akabaila.pcug.org.au/StructuralAn

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" 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 compatible modules

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

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

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']] numpy.distutils.__config__.blas_opt_info['include_dir

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

2011-02-24 Thread Benjamin Root
On Thu, Feb 24, 2011 at 12:00 PM, Bryan Woods 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 > stateme

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: > > [[-- -- -- ..., -- -- --] > [-- -- -- ..., -- -- --] > [-- -- -- ..., -- -- --] > ..., > [-- -- -- ..., -- -- --] > [-- -- -- ..., -- -- --] > [-- -- -- ..., -- -- --]] > > thoug

[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] Adding `offset` argument to np.lib.format.open_memmap and np.load

2011-02-24 Thread Jon Olav Vik
Jon Olav Vik gmail.com> writes: > https://github.com/jonovik/numpy/compare/master...offset_memmap > I've used this extensively on Numpy 1.4.0, but based my Git checkout on the > current Numpy trunk. There have been some rearrangements in np.load since then > (it used to be in np.lib.io and is

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

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 "", line 1, in >>File "/usr/local/lib64/python2.6/site-packages/numpy/__init__.py", >> line 127, in >> raise ImportError(msg) >> ImportError: Error importing

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", "co

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

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

[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 (r

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