[Numpy-discussion] [ANN] Introductory Pytroll Workshop, Nov. 25-26 2013, at SMHI, Sweden

2013-09-13 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [sorry for crossposting] Hi all, After the success of last years workshop, we decided to hold the Pytroll workshop this year again at SMHI. Pytroll is a collection of free and open source python modules for the reading, interpretation, and writing o

[Numpy-discussion] [ANN] Introductory Pytroll Workshop, Nov. 25-26 2013, at SMHI, Sweden

2013-09-13 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [sorry for crossposting] Hi all, After the success of last years workshop, we decided to hold the Pytroll workshop this year again at SMHI. Pytroll is a collection of free and open source python modules for the reading, interpretation, and writing o

Re: [Numpy-discussion] Strange memory consumption in numpy?

2013-05-16 Thread Martin Raspaud
On 16/05/13 10:26, Robert Kern wrote: >> Can anyone give a reasonable explanation ? > > memory_profiler only looks at the amount of memory that the OS has > allocated to the Python process. It cannot measure the amount of > memory actually given to living objects. Python does not always return >

[Numpy-discussion] Strange memory consumption in numpy?

2013-05-16 Thread Martin Raspaud
013 Martin Raspaud # Author(s): # Martin Raspaud # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio

[Numpy-discussion] allclose changed behaviour in 1.6.2 ?

2012-11-30 Thread Martin Raspaud
Hi, We noticed that comparing arrays of different shapes with allclose doesn't work anymore in numpy 1.6.2. Is this a feature or a bug ? :) See the output in both 1.6.1 and 1.6.2 at the end of this mail. Best regards, Martin 1.6.1:: In [1]: import numpy as np In [2]: np.__version__ Out[2]

Re: [Numpy-discussion] Numpy 1.6.1 installation problem

2012-02-15 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/02/12 16:48, Bruce Southey wrote: > On 02/14/2012 09:40 AM, Olivier Delalleau wrote: >> Really not an expert here, but it looks like it's trying various >> compilation options, some work and some don't, and for some reason >> it's really unhappy

[Numpy-discussion] Numpy 1.6.1 installation problem

2012-02-14 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I am trying to compile numpy 1.6.1 from source on a Redhat Linux enterprise 6 machine, and I get a problem with Python.h : somehow it can't be located by numpy's install script: SystemError: Cannot compile 'Python.h'. Perhaps you need to insta

Re: [Numpy-discussion] kind of a matrix multiplication

2011-10-11 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/10/11 07:49, Martin Raspaud wrote: > Hi all, [...] > I'm looking for the operation needed to get the two (stacked) vectors > array([[0, 1, 2], >[6, 8, 10]])) > or its transpose. Hi again, Here is a solution I just

[Numpy-discussion] kind of a matrix multiplication

2011-10-10 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have a stack of vectors: v1 = np.arange(3) v2 = np.arange(3) + 3 stack = np.vstack(v1, v2) (now stack is : array([[0, 1, 2], [3, 4, 5]])) and a 3d matrix: mat = np.dstack((np.eye(3), np.eye(3) * 2)) (mat is now array([[[ 1., 2.],

Re: [Numpy-discussion] [SciPy-Dev] Good-bye, sort of (John Hunter)

2010-08-17 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Goldsmith skrev: > > > Ahh, cell arrays, they bring back memories. Makes you pine for a > dictionary, no? > > JDH > > > Not to mention writeline, readline, string concatenation using +, > English wording of loops, list comprehen

Re: [Numpy-discussion] numpy.fft, yet again

2010-07-15 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Goldsmith skrev: > > > Interesting comment: it made me run down the fftpack tutorial > > josef has alluded to in the past to see if the suggested pointer > could

Re: [Numpy-discussion] Reading 12bits numbers ?

2010-06-08 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nadav Horesh skrev: > You can. If each number occupies 2 bytes (16 bits) it is straight > forward. If it is a continues 12 bits stream you have to unpack by your > self: > > data = np.fromstring(str12bits, dtype=np.uint8) > data1 = data.astype(no.uint

[Numpy-discussion] Reading 12bits numbers ?

2010-06-08 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Is it possible to read an array of 12bit encoded numbers from file (or string) using numpy ? Thanks, Martin -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEB

Re: [Numpy-discussion] Decision tree-like algorithm on numpy arrays

2010-05-06 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Francesc Alted skrev: > Hi Martin, [...] > > and the output for my machine: > > result_array1: [4 2 4 ..., 1 3 4] 1.819 > result_array2: [4 2 4 ..., 1 3 4] 0.308 > > which is a 6x speed-up. I suppose this should be pretty close of what you > can

[Numpy-discussion] Decision tree-like algorithm on numpy arrays

2010-05-06 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have an old c-extension I want to remove from my code to the benefit of numpy, but it looks kind of tricky to me. Here is the thing: I have a number of arrays of the same shape. On these arrays, I run a sequence of tests, leading to a kind

Re: [Numpy-discussion] Int bitsize in python and c

2010-03-18 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dag Sverre Seljebotn skrev: > Martin Raspaud wrote: > Hello, > > I work on a 64bit machine with 64bits enable fedora on it. > > I just discovered that numpy.int on the python part are 64bits ints, while > npy_int in the

[Numpy-discussion] Int bitsize in python and c

2010-03-18 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I work on a 64bit machine with 64bits enable fedora on it. I just discovered that numpy.int on the python part are 64bits ints, while npy_int in the C api are 32bits ints. I can live with it, but it seems to be different on 32bit machines, he

Re: [Numpy-discussion] C-api and masked arrays

2010-03-01 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pierre GM skrev: > On Mar 1, 2010, at 10:04 AM, Martin Raspaud wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Hi all, >> >> We are using at the moment a c extension which should manipulate mask

[Numpy-discussion] C-api and masked arrays

2010-03-01 Thread Martin Raspaud
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, We are using at the moment a c extension which should manipulate masked arrays. What we do is to fill the masked array with a given value (say 65535 if we run uint16 arrays), do the manipulation, and convert back to masked arrays when we go ba