Re: [Numpy-discussion] NumPy 1.11.0b3 released.

2016-02-17 Thread Andreas Mueller
On 02/12/2016 04:19 PM, Nathan Goldbaum wrote: https://github.com/numpy/numpy/blob/master/doc/release/1.11.0-notes.rst Thanks. That doesn't cover the backward incompatible change to assert_almost_equal and assert_array_almost_equal, right? ___ Num

Re: [Numpy-discussion] NumPy 1.11.0b3 released.

2016-02-12 Thread Andreas Mueller
Hi. Where can I find the changelog? It would be good for us to know which changes are done one purpos without hunting through the issue tracker. Thanks, Andy On 02/09/2016 09:09 PM, Charles R Harris wrote: Hi All, I'm pleased to announce the release of NumPy 1.11.0b3. This beta contains add

Re: [Numpy-discussion] Numpy 1.11.0b2 released

2016-02-10 Thread Andreas Mueller
On 02/01/2016 04:25 PM, Ralf Gommers wrote: It would be nice but its not realistic, I doubt most upstreams that are not themselves major downstreams are even subscribed to this list. I'm pretty sure that some core devs from all major scipy stack packages are subscribed to this l

Re: [Numpy-discussion] Numpy 1.11.0b2 released

2016-02-10 Thread Andreas Mueller
test()'" >> This might not be viable right now, but will be made more viable if pypi starts allowing official Linux wheels, which looks likely to happen before 1.12... (see PEP 513) >> >> On Jan 29, 2016 9:46 AM, "Andreas Mueller" <mailto:t3k...@gmail.co

Re: [Numpy-discussion] Numpy 1.11.0b2 released

2016-01-29 Thread Andreas Mueller
Is this the point when scikit-learn should build against it? Or do we wait for an RC? Also, we need a scipy build against it. Who does that? Our continuous integration doesn't usually build scipy or numpy, so it will be a bit tricky to add to our config. Would you run our master tests? [did we e

Re: [Numpy-discussion] FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.

2015-04-08 Thread Andreas Hilboll
On 08.04.2015 20:30, Nathaniel Smith wrote: > On Apr 8, 2015 2:16 PM, "Andreas Hilboll" <mailto:li...@hilboll.de>> wrote: >> >> Hi all, >> >> I'm commonly using function signatures like >> >>def myfunc(a, b

[Numpy-discussion] FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.

2015-04-08 Thread Andreas Hilboll
object comparison in the future from the "c is None" comparison. I'm wondering what would be the best way to do this check in a future-proof way? Best, -- Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

Re: [Numpy-discussion] Dates and times and Datetime64 (again)

2014-04-28 Thread Andreas Hilboll
On 19.04.2014 09:03, Andreas Hilboll wrote: > On 14.04.2014 20:59, Chris Barker wrote: >> On Fri, Apr 11, 2014 at 4:58 PM, Stephan Hoyer > <mailto:sho...@gmail.com>> wrote: >> >> On Fri, Apr 11, 2014 at 3:56 PM, Charles R Harris >> m

Re: [Numpy-discussion] Dates and times and Datetime64 (again)

2014-04-19 Thread Andreas Hilboll
lly something works! > > > now to get them into proper unit tests As one further suggestion, I think it would be nice if doing arithmetic using np.datetime64 and datetime.timedelta objects would work: np.datetime64(2011,1,1) + datetime.timedelta(1) == np.datetime64(2011,1,2) And of course, but this is probably in the loop anyways, np.asarray([list_of_datetime.datetime_objects]) should work as expected. -- Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Suggestion: Port Theano RNG implementation to NumPy

2014-02-18 Thread Andreas Hilboll
G, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN

Re: [Numpy-discussion] Overlapping time series

2014-02-11 Thread Andreas Hilboll
On 11.02.2014 14:47, Daniele Nicolodi wrote: > On 11/02/2014 14:41, Andreas Hilboll wrote: >> On 11.02.2014 14:22, Daniele Nicolodi wrote: >>> On 11/02/2014 14:10, Andreas Hilboll wrote: >>>> On 11.02.2014 14:08, Daniele Nicolodi wrote: >>>>> H

Re: [Numpy-discussion] Overlapping time series

2014-02-11 Thread Andreas Hilboll
On 11.02.2014 14:22, Daniele Nicolodi wrote: > On 11/02/2014 14:10, Andreas Hilboll wrote: >> On 11.02.2014 14:08, Daniele Nicolodi wrote: >>> Hello, >>> >>> I have two time series (2xN dimensional arrays) recorded on the same >>> time basis, but eac

Re: [Numpy-discussion] Overlapping time series

2014-02-11 Thread Andreas Hilboll
ly the time overlapping segments of the data. > > Does numpy or scipy offer something that may help in this? > > I can imagine strategies about how to approach the problem, but none > that would be efficient. Ideas? Take a look at pandas. It has built-

[Numpy-discussion] Why do weights in np.polyfit have to be 1D?

2014-01-10 Thread Andreas Hilboll
Hi, in using np.polyfit (in version 1.7.1), I ran accross TypeError: expected a 1-d array for weights when trying to fit k polynomials at once (x.shape = (4, ), y.shape = (4, 136), w.shape = (4, 136)). Is there any specific reason why this is not supported? -- Andreas

Re: [Numpy-discussion] Reading from binary file with memmap, with offset

2013-10-10 Thread Andreas Hilboll
np.memmap(fd, dtype="float32", mode="r", offset=offset) > > Also, there's no need to do things like "offset = > int(fd.readlines()[0].split()[-2])" > > Just do "offset = int(next(fd).split()[-2])" instead. Readlines reads > the e

Re: [Numpy-discussion] Reading from binary file with memmap, with offset

2013-10-10 Thread Andreas Hilboll
osed an update to the memmap docstring to better reflect this: https://github.com/numpy/numpy/pull/3890 -- Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Reading from binary file with memmap, with offset

2013-10-10 Thread Andreas Hilboll
quot;) np.memmap(fd, dtype="float32", mode="r") ---8<--- Any help is greatly appreciated :) -- Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] 2-D Histogram

2013-09-10 Thread Andreas Hilboll
ted/scipy.stats.binned_statistic_2d.html At first glance it can do what you're trying to do. Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Splitting numpydoc to a separate repo

2013-07-24 Thread Andreas Hilboll
On 24.07.2013 17:33, Pauli Virtanen wrote: > Hi, > > How about splitting doc/sphinxext out from the main Numpy repository to > a separate `numpydoc` repo under Numpy project? +1 -- Andreas ___ NumPy-Discussion mailing list NumPy-Discussi

Re: [Numpy-discussion] flip array on axis

2013-07-12 Thread Andreas Hilboll
Am 10.07.2013 17:06, schrieb Matthew Brett: > Hi, > > On Wed, Jul 10, 2013 at 11:02 AM, Andreas Hilboll wrote: >> Hi, >> >> there are np.flipud and np.fliplr methods to flip 2d arrays on the first >> and second dimension, respectively. What can I do to flip an

Re: [Numpy-discussion] flip array on axis

2013-07-10 Thread Andreas Hilboll
On 10.07.2013 17:06, Matthew Brett wrote: > Hi, > > On Wed, Jul 10, 2013 at 11:02 AM, Andreas Hilboll wrote: >> Hi, >> >> there are np.flipud and np.fliplr methods to flip 2d arrays on the first >> and second dimension, respectively. What can I do to flip an

[Numpy-discussion] flip array on axis

2013-07-10 Thread Andreas Hilboll
Any ideas? Cheers, Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] pyhdf packaging

2013-05-23 Thread Andreas Hilboll
On 10.05.2013 19:32, Arnaldo Russo wrote: > Hi Andreas, > This packaging would be much useful! > How can I help with this? > pyhdf is very important because HDF4-EOS does not open with another > packages, only with pyhdf and gdal. Hi Arnaldo, I actually went ahead and put the pa

Re: [Numpy-discussion] numpy.scipy.org page 404s

2013-04-26 Thread Andreas Hilboll
ing www.scipy.org Apache > server to host the redirects. Good. I have no clue about who operates which servers, and just assumed numfocus is doing that. BTW, is there help needed in server administration (for numpy, scipy, or whatever)? I could happily volunteer to help out. Cheers, Andreas. __

Re: [Numpy-discussion] numpy.scipy.org page 404s

2013-04-26 Thread Andreas Hilboll
l a HTTP redirect **or** a HTTPD rewrite on that IP. So we need to find a server to do that. Probably easiest to ask numfocus, right? Cheers, Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Impossible to draw a direction of arrows in Python???

2013-04-12 Thread Andreas Hilboll
> Hi, > I have encountered some problem while I was drawing a direction of > arrow. I have point (x,y) coordinates and angle of them. What I want to > do is that to draw arrow according to the given angle (just to show the > point direction as an arrow in each point coordinate). Here, we should > a

Re: [Numpy-discussion] timezones and datetime64

2013-04-02 Thread Andreas Hilboll
>> As I poke at this a bit, I"m noticing that maybe time zones aren't >> handles at all internally -- rather, the conversion is done to UTC >> when creating a datetime64, and conversion is then done to the locale >> when creating a strng representation -- maybe nothing inside at all. >> >> Does t

Re: [Numpy-discussion] how to efficiently select multiple slices from an array?

2013-03-20 Thread Andreas Hilboll
> Hey, > > On Wed, 2013-03-20 at 16:31 +0100, Andreas Hilboll wrote: >> Cross-posting a question I asked on SO >> (http://stackoverflow.com/q/15527666/152439): >> >> >> Given an array >> >> d = np.random.randn(100) >> >> and an

[Numpy-discussion] how to efficiently select multiple slices from an array?

2013-03-20 Thread Andreas Hilboll
that for all j=0..19, r[j] = d[i[j]-3:i[j]+5] In my case, the arrays are quite large (~20 instead of 100 and 20), so something quick would be useful. Cheers, Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http

[Numpy-discussion] np.percentile docstring

2013-02-17 Thread Andreas Hilboll
hought the docs are auto-generated, and that the "array..." result of the docstring would be calculated by numpy while building the docs? Or am I misunderstanding something here? Cheers, Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion

[Numpy-discussion] savez documentation flaw

2013-02-05 Thread Andreas Hilboll
ut where to fix this? For someone without deeper knowledge of how numpy sources are organized it's hard to find the place where to fix things. How about adding the "source" link to the docstrings via sphinx, like in scipy? Cheers, Andreas. __

[Numpy-discussion] ANN: scikit-learn 0.13 released!

2013-01-21 Thread Andreas Mueller
Hi all. I am very happy to announce the release of scikit-learn 0.13. New features in this release include feature hashing for text processing, passive-agressive classifiers, faster random forests and many more. There have also been countless improvements in stability, consistency and usability.

[Numpy-discussion] pyhdf packaging

2012-11-06 Thread Andreas Hilboll
Andre Gosselin, however the email bounces, so I guess he's gone. Can anyone point me to how to proceed from here? Cheers, Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] variable number of columns in loadtxt/genfromtxt

2012-09-25 Thread Andreas Hilboll
> On Tue, Sep 25, 2012 at 2:31 AM, Andreas Hilboll wrote: >> I commonly have to deal with legacy ASCII files, which don't have a >> constant number of columns. The standard is 10 values per row, but >> sometimes, there are less columns. loadtxt doesn't support t

[Numpy-discussion] variable number of columns in loadtxt/genfromtxt

2012-09-25 Thread Andreas Hilboll
resulting array. Is there any way around this? Thanks for your insight, Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] specifying numpy as dependency in your project, install_requires

2012-09-21 Thread Andreas Hilboll
; As for packages getting updated unintentionally, easy_install and pip > both require an argument to upgrade any existing packages (I think > -U), so I am not sure how you are running into such a situation. Quite easily, actually. I ran into pip wanting to upgrade numpy when I was installing/upgrading a package depending on numpy. Problem is, -U upgrades both the package you explicitly select *and* its dependencies. I know there's some way around this, but it's not obvious -- at least not for users. Cheers, Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] bug in numpy.where?

2012-07-27 Thread Andreas Mueller
On 07/27/2012 09:10 PM, Benjamin Root wrote: On Fri, Jul 27, 2012 at 3:58 PM, Andreas Mueller mailto:amuel...@ais.uni-bonn.de>> wrote: Hi Everybody. The bug is that no error is raised, right? The docs say where(condition, [x, y]) x, y : array_like, op

Re: [Numpy-discussion] bug in numpy.where?

2012-07-27 Thread Andreas Mueller
Hi Everybody. The bug is that no error is raised, right? The docs say where(condition, [x, y]) x, y : array_like, optional Values from which to choose. `x` and `y` need to have the same shape as `condition` In the example you gave, x was a scalar. Cheers, Andy

Re: [Numpy-discussion] Fwd: np.unique for one bi-dimensional array

2012-07-25 Thread Andreas Hilboll
> Hi, > > would like to identify unique pairs of numbers in two arrays o in one > bi-dimensional array, and count the observation > > a_clean=array([4,4,5,4,4,4]) > b_clean=array([3,5,4,4,3,4]) > > and obtain > (4,3,2) > (4,5,1) > (5,4,1) > (4,4,2) > > I solved with tow loops but off course there w

[Numpy-discussion] Problems understanding histogram2d

2012-07-20 Thread Andreas Hilboll
, bins_y)) AttributeError: The dimension of bins must be equal to the dimension of the sample x. I would expect histogram2d to return a 2d array of shape (360,180), which is full of 256s. What am I missing here? Cheers, Andreas. ___ NumPy-Discussion

Re: [Numpy-discussion] [SciPy-Dev] ANN: SciPy 0.11.0 release candidate 1

2012-07-20 Thread Andreas Hilboll
> Hi, > > I am pleased to announce the availability of the first release candidate > of > SciPy 0.11.0. For this release many new features have been added, and over > 120 tickets and pull requests have been closed. Also noteworthy is that > the > number of contributors for this release has risen to

Re: [Numpy-discussion] f2py with allocatable arrays

2012-07-03 Thread Andreas Hilboll
> Hi numpy. > > Does anyone know if f2py supports allocatable arrays, allocated inside > fortran subroutines? The old f2py docs seem to indicate that the > allocatable array must be created with numpy, and dropped in the module. > Here's more background to explain... > > I have a fortran subroutine

Re: [Numpy-discussion] Dropping support for Python 2.4 in NumPy 1.8

2012-06-28 Thread Andreas Hilboll
> Hi Travis, > > On Thu, Jun 28, 2012 at 1:25 PM, Travis Oliphant > wrote: >> Hey all, >> >> I'd like to propose dropping support for Python 2.4 in NumPy 1.8 (not >> the 1.7 release).      What does everyone think of that? > > I think it would depend on 1.7 state. I am unwilling to drop support >

Re: [Numpy-discussion] Ubuntu PPA for NumPy / SciPy / ...

2012-06-07 Thread Andreas Hilboll
know of its status? Is it >> 'official'? Are there any plans in revitalizing it, possibly with adding >> other projects from the "scipy universe"? Is there help needed? >> >> Many questions, but possibly quite easy to answer ... >> >> Cheers, >>

[Numpy-discussion] Ubuntu PPA for NumPy / SciPy / ...

2012-06-07 Thread Andreas Hilboll
ects from the "scipy universe"? Is there help needed? Many questions, but possibly quite easy to answer ... Cheers, Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] why two versions of polyfit?

2012-05-20 Thread Andreas Hilboll
> On Sun, May 20, 2012 at 9:37 AM, Charles R Harris > mailto:charlesr.har...@gmail.com>> wrote: > > > > On Sun, May 20, 2012 at 9:09 AM, Andreas Hilboll <mailto:li...@hilboll.de>> wrote: > > Hi, > > I just notic

[Numpy-discussion] why two versions of polyfit?

2012-05-20 Thread Andreas Hilboll
ions exist. Puzzled greetings, Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] ANN: NumPy 1.6.2 release candidate 1

2012-05-07 Thread Andreas H.
ssion 1.6.2RC1 builds fine under the following configurations (all of them x86_64): * Ubuntu Lucid 10.4 / Python 2.6.5 / GCC 4.4.3: OK (KNOWNFAIL=3, SKIP=5) * Archlinux (as of today) / Python 3.2.3 / GCC 4.7.0: OK (KNOWNFAIL=5, SKIP=5) * Archlinux (as of today) / Python 2.7.3 / GCC: OK (KNOWNFAIL=3, SKIP=5) Great work! Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] What is consensus anyway

2012-04-25 Thread Andreas H.
ently / soon. Plus, numpy is a lot of C code, and to me (again, as a user) it seems more complicated to contribute because things are not as isolated. Just my 2 ct. Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] YouTrack testbed

2012-04-12 Thread Andreas H.
Have you guys actually thought about JIRA? Atlassian offers free licences for open source projects ... Cheers, Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Trouble building NumPy on PPC64

2012-03-22 Thread Andreas H.
> On Mon, Mar 19, 2012 at 6:45 PM, Andreas H. wrote: > >> Hi all, >> >> I have troube installing numpy in a virtual environment on a SuSE >> Enterprise 11 server (ppc64). >> >> Here is what I did: >> >>curl -O https://raw.github

[Numpy-discussion] Trouble building NumPy on PPC64

2012-03-19 Thread Andreas H.
doas/build/numpy> find /usr/include/ | grep Python.h /usr/include/python2.6/Python.h I also tried without the --distribute --no-site-packages flags, with the same result. Any hints are very welcome :) Cheers, Andreas. ___ NumPy-Discussion maili

[Numpy-discussion] Memory leak in numpy

2012-03-09 Thread FRENK Andreas
1.6.1 also? Or, would it be possible to send me the fixes to include it in 1.6.1 (or 1.4.1) on my own?! Thanks, Andreas This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not

[Numpy-discussion] Curious behavior of __radd__

2012-02-01 Thread Andreas Kloeckner
64(1j) + A() --- In my world, this should print . It does print . Who is casting my sized complex to a built-in complex, and why? It can be Python's type coercion, because the behavior is the same in Python 3.2. (And the docs say Python 3 doesn't support coercion.) (Please cc m

Re: [Numpy-discussion] dtype comparison, hash

2012-01-16 Thread Andreas Kloeckner
Hi Robert, On Fri, 30 Dec 2011 20:05:14 +, Robert Kern wrote: > On Fri, Dec 30, 2011 at 18:57, Andreas Kloeckner > wrote: > > Hi Robert, > > > > On Tue, 27 Dec 2011 10:17:41 +, Robert Kern > > wrote: > >> On Tue, Dec 27, 2011 at 01:22, Andre

Re: [Numpy-discussion] dtype comparison, hash

2011-12-30 Thread Andreas Kloeckner
Hi Robert, On Tue, 27 Dec 2011 10:17:41 +, Robert Kern wrote: > On Tue, Dec 27, 2011 at 01:22, Andreas Kloeckner > wrote: > > Hi all, > > > > Two questions: > > > > - Are dtypes supposed to be comparable (i.e. implement '==', '!='

[Numpy-discussion] dtype comparison, hash

2011-12-26 Thread Andreas Kloeckner
to throw an error. If not, we found a bug in the hash implementation.) Thanks! Andreas pgpXxNc3SXl0l.pgp Description: PGP signature ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Andreas Müller
On 11/15/2011 07:03 PM, Gael Varoquaux wrote: > On Tue, Nov 15, 2011 at 05:57:14PM +, Robert Kern wrote: >> Actually, last time I suggested it, it was brought up that the online >> algorithms can be worse numerically. I'll try to find the thread. > Indeed, especially for smallish datasets where

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Andreas Müller
On 11/15/2011 06:02 PM, Warren Weckesser wrote: On Tue, Nov 15, 2011 at 10:48 AM, Andreas Müller mailto:amuel...@ais.uni-bonn.de>> wrote: On 11/15/2011 05:46 PM, Andreas Müller wrote: On 11/15/2011 04:28 PM, Bruce Southey wrote: On 11/14/2011 10:05 AM, Andreas Müller

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Andreas Müller
On 11/15/2011 05:46 PM, Andreas Müller wrote: On 11/15/2011 04:28 PM, Bruce Southey wrote: On 11/14/2011 10:05 AM, Andreas Müller wrote: On 11/14/2011 04:23 PM, David Cournapeau wrote: On Mon, Nov 14, 2011 at 12:46 PM, Andreas Müller wrote: Hi everybody. When I did some normalization

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-15 Thread Andreas Müller
On 11/15/2011 04:28 PM, Bruce Southey wrote: On 11/14/2011 10:05 AM, Andreas Müller wrote: On 11/14/2011 04:23 PM, David Cournapeau wrote: On Mon, Nov 14, 2011 at 12:46 PM, Andreas Müller wrote: Hi everybody. When I did some normalization using numpy, I noticed that numpy.std uses more ram

Re: [Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-14 Thread Andreas Müller
On 11/14/2011 04:23 PM, David Cournapeau wrote: > On Mon, Nov 14, 2011 at 12:46 PM, Andreas Müller > wrote: >> Hi everybody. >> When I did some normalization using numpy, I noticed that numpy.std uses >> more ram than I was expecting. >> A quick googl

[Numpy-discussion] Memory hungry reduce ops in Numpy

2011-11-14 Thread Andreas Müller
Hi everybody. When I did some normalization using numpy, I noticed that numpy.std uses more ram than I was expecting. A quick google search gave me this: http://luispedro.org/software/ncreduce The site claims that std and other reduce operations are implemented naively with many temporaries. Is tha

[Numpy-discussion] Get the index of a comparison of two lists

2011-02-16 Thread FRENK Andreas
Hi, Thanks for the two solutions. Indeed, there are much faster than the brute force method using in. The setmember1d is deprecate din newer python releases, therefore I already switched to in1d(). (Thanks Josef.) Andreas ___ NumPy-Discussion

[Numpy-discussion] Get the index of a comparison of two lists

2011-02-11 Thread FRENK Andreas
idea how to do it fast using numpy? Thanks, Andreas ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Pthreads ATLAS

2010-09-06 Thread Andreas Kloeckner
encounter this error: Python 3.1.2 (release31-maint, Jul 8 2010, 09:18:08) [GCC 4.4.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy Traceback (most recent call last): File "", lin

Re: [Numpy-discussion] np.choose() question

2010-06-08 Thread Andreas
solutions. > > On Tue, Jun 8, 2010 at 2:08 PM, Andreas Hilboll <mailto:li...@hilboll.de>> wrote: > > Hi, > > > newtimes = [times[idx[x][y]] for x in range(2) for y in range(2)] > > np.array(newtimes).reshape(2,2) > > array([[104, 10

Re: [Numpy-discussion] np.choose() question

2010-06-08 Thread Andreas Hilboll
Hi, > newtimes = [times[idx[x][y]] for x in range(2) for y in range(2)] > np.array(newtimes).reshape(2,2) > array([[104, 102], >[103, 101]]) Great, thanks a lot! Cheers, Andreas. ___ NumPy-Discussion mailing list NumP

[Numpy-discussion] np.choose() question

2010-06-08 Thread Andreas Hilboll
= [[4,2],[3,1]] times = [100,101,102,103,104] From these two I want to create an array result = [[104,102],[103,101]] How can this be done? Thanks a lot for your insight! Andreas ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy

[Numpy-discussion] 2d binning on regular grid

2010-06-02 Thread Andreas Hilboll
Hi there, I'm interested in the solution to a special case of the parallel thread '2D binning', which is going on at the moment. My data is on a fine global grid, say .125x.125 degrees. I'm looking for a way to do calculations on coarser grids, e.g. * calculate means() * calculate std() * ... on

Re: [Numpy-discussion] Speeding up loadtxt / savetxt

2010-04-28 Thread Andreas Hilboll
le is ~13 seconds, and to write ~5 seconds. Which is not too bad, but also still too much ... Thanks, Andreas ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] wrapping arrays with savetxt

2010-04-25 Thread Andreas
hanks for your insight, Andreas ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Speeding up loadtxt / savetxt

2010-04-25 Thread Andreas
27;s taking a long time... Perhaps there's a way to speed things up? Thanks a lot for your insight, Andreas. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] trim_zeros in more than one dimension?

2010-04-20 Thread Andreas Hilboll
Hi there, is there an easy way to do something like trim_zeros() does, but for a n-dimensional array? I have a 2d array with only zeros in the first and last rows and columns, and would like to trim this array to only the non-zero part ... Thanks, Andreas

Re: [Numpy-discussion] Row-wise dot product?

2009-09-07 Thread Hans-Andreas Engel
> From: T J gmail.com> > Is there a better way to achieve the following, perhaps without the > python for loop? > > >>> x.shape > (1,3) > >>> y.shape > (1,3) > >>> z = empty(len(x)) > >>> for i in range(1): > ...z[i] = dot(x[i], y[i]) > ... > __

[Numpy-discussion] [ANN] PyOpenCL 0.90 - a Python interface for OpenCL

2009-08-28 Thread Andreas Klöckner
ce. :) License --- PyOpenCL is open-source under the MIT/X11 license and free for commercial, academic, and private use. Andreas [1] http://mathema.tician.de/software/pycuda signature.asc Description: This is a digitally signed message part. __

Re: [Numpy-discussion] array of matrices

2009-03-31 Thread Hans-Andreas Engel
Robert Kern gmail.com> writes: > On Sat, Mar 28, 2009 at 23:15, Anne Archibald gmail.com> wrote: > > 2009/3/28 Geoffrey Irving naml.us>: > >> On Sat, Mar 28, 2009 at 12:47 AM, Robert Kern gmail.com> wrote: > >>> 2009/3/27 Charles R Harris gmail.com>: > > On Fri, Mar 27, 2009 at 4:43

Re: [Numpy-discussion] Should object arrays have a buffer interface?

2008-12-29 Thread Andreas Klöckner
fer protocol. I'm inclined not to make object a > special case. When you ask for the raw bytes, you should get the raw > bytes. Ok, fair enough. Andreas signature.asc Description: This is a digitally signed message part. ___ Numpy-discussion m

Re: [Numpy-discussion] Should object arrays have a buffer interface?

2008-12-28 Thread Andreas Klöckner
On Montag 29 Dezember 2008, Robert Kern wrote: > On Sun, Dec 28, 2008 at 20:38, Andreas Klöckner wrote: > > On Montag 29 Dezember 2008, Robert Kern wrote: > >> On Sun, Dec 28, 2008 at 19:23, Andreas Klöckner > >> > > > > wrote: > >> > Hi all, &

Re: [Numpy-discussion] Should object arrays have a buffer interface?

2008-12-28 Thread Andreas Klöckner
On Montag 29 Dezember 2008, Robert Kern wrote: > On Sun, Dec 28, 2008 at 19:23, Andreas Klöckner wrote: > > Hi all, > > > > I don't think PyObject pointers should be accessible via the buffer > > interface. I'd throw an error, but maybe a (silenceable) warn

[Numpy-discussion] Should object arrays have a buffer interface?

2008-12-28 Thread Andreas Klöckner
numpy.array([55, (33,)], dtype=object) >>> x array([55, (33,)], dtype=object) >>> buffer(x) >>> str(buffer(x)) '\xb0\x1c\x17\x08l\x89\xd7\xb7' >>> numpy.__version__ '1.1.0' Opinions? Andreas signature.asc Description: This is a digitally

Re: [Numpy-discussion] Generalized ufuncs?

2008-08-18 Thread Engel, Hans-Andreas
"Charles R Harris" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... On Sun, Aug 17, 2008 at 7:56 PM, Stéfan van der Walt <[EMAIL PROTECTED]>wrote: > 2008/8/17 Robert Kern <[EMAIL PROTECTED]>: > > I suggested that we move it to a branch for the time being so we can > > play with

Re: [Numpy-discussion] Generalized ufuncs?

2008-08-18 Thread Engel, Hans-Andreas
"Robert Kern" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On Sun, Aug 17, 2008 at 21:55, Anne Archibald <[EMAIL PROTECTED]> wrote: > > 2008/8/17 Robert Kern <[EMAIL PROTECTED]>: > >> > >> I suggested that we move it to a branch for the time being so we can > >> play with it

Re: [Numpy-discussion] Generalised ufuncs branch

2008-08-17 Thread Engel, Hans-Andreas
lso pound on it at the sprint during SciPy'08, and thereafter decide how and when to best integrate it into NumPy. Thanks to Wenjie Fu and Hans-Andreas Engel for taking the time to think this issue through and to submit such a high-quality patch. Regards Stéfan -- Motivated by St

Re: [Numpy-discussion] Problem with the mailing list?

2008-08-17 Thread Engel, Hans-Andreas
"Charles R Harris" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Hi All, > > I received an email from Hans Andreas -- the gen-ufuncs guy -- and he is > unable to post to the list even though subscribed. Anyone know what might be > the pr

Re: [Numpy-discussion] Generalized ufuncs?

2008-08-17 Thread Engel, Hans-Andreas
I am sorry that our submission http://projects.scipy.org/scipy/numpy/ticket/887 has created some annoyance; presumably we have taken the "Make contributions (e.g. code patches), (...) by submitting a 'ticket' on the Trac pages linked below" on http://scipy.org/Developer_Zone somewhat too literally.

Re: [Numpy-discussion] ANN: PyCuda

2008-06-22 Thread Andreas Klöckner
ce as fast. :) > The first part of install.rst still says: "This tutorial will walk you > through the process of building PyUblas." Oops. Thanks. Fixed. Andreas signature.asc Description: This is a digitally signed message part. ___ Numpy-di

[Numpy-discussion] ANN: PyCuda

2008-06-22 Thread Andreas Klöckner
r get in touch. Andreas [1] http://mathema.tician.de/software/pycuda [2] http://nvidia.com/cuda [3] http://code.google.com/p/pystream/ [4] ftp://ftp.graviscom.com/pub/code/python-cuda [5] http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization [6] http://tiker.net/doc/pyc

[Numpy-discussion] Fancy index assign ignores extra assignees

2008-06-19 Thread Andreas Klöckner
h: >>> v[1:3] = [1,2,3,4] Traceback (most recent call last): File "", line 1, in ValueError: shape mismatch: objects cannot be broadcast to a single shape Andreas signature.asc Description: This is a digitally signed message part. ___

Re: [Numpy-discussion] embedded arrays

2008-06-07 Thread Andreas Klöckner
of the nasty bits of wrapping C++ code for numpy. Including getting the refcounting right. :) Andreas [1] http://tiker.net/doc/pyublas/ signature.asc Description: This is a digitally signed message part. ___ Numpy-discussion mailing list Numpy-disc

Re: [Numpy-discussion] ANN: NumPy/SciPy Documentation Marathon 2008

2008-05-17 Thread Andreas Klöckner
ropose. Mainly: while we need to respect Travis's copyright, a duplication of the massive effort that went into the book hardly seems sensible. One initial question is therefore: Is it OK to copy material out of the book and into other parts of the documentation? Andreas signature

Re: [Numpy-discussion] strict aliasing?

2008-05-04 Thread Andreas Klöckner
llow that, as long as each struct member is only ever accessed through one type? Andreas signature.asc Description: This is a digitally signed message part. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/l

Re: [Numpy-discussion] Starting to work on runtime plugin system for plugin (automatic sse optimization, etc...)

2008-04-29 Thread Andreas Klöckner
On Dienstag 29 April 2008, David Cournapeau wrote: > Andreas Klöckner wrote: > > Yes, obviously everything will need to be linked into one big static > > executable blob. I am somewhat certain that distutils will be of no help > > there, so I will need to "roll my ow

Re: [Numpy-discussion] Starting to work on runtime plugin system for plugin (automatic sse optimization, etc...)

2008-04-29 Thread Andreas Klöckner
On Dienstag 29 April 2008, David Cournapeau wrote: > Andreas Klöckner wrote: > > Argh. -1 for a hard dependency on dlopen(). > > There is no hard dependency on dlopen, there is a hard dependency on > runtime loading, because well, that's the point of a plugin system. It &g

Re: [Numpy-discussion] Starting to work on runtime plugin system for plugin (automatic sse optimization, etc...)

2008-04-29 Thread Andreas Klöckner
might be forced to compile numpy on an IBM Bluegene/L, which does *not* have dynamic linking at all. (Btw, anybody done something like this before?) Andreas signature.asc Description: This is a digitally signed message part. ___ Numpy-discussion mailing l

Re: [Numpy-discussion] What is __array_wrap__ supposed to do?

2008-04-26 Thread Andreas Klöckner
NOoooooo! :) Andreas signature.asc Description: This is a digitally signed message part. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Fwd: Re: numpy as a setuptools dependency

2008-04-24 Thread Andreas Klöckner
Ok, forwarding this to distutils-sig. :) Andreas --- Begin Message --- Ooh. I am glad someone else is seeing this. I see the same thing when I try to install Twisted 8 pulled in as a setuptools dependency. My guess is that this is a setuptools problem, not a problem with numpy or Twisted

[Numpy-discussion] numpy as a setuptools dependency

2008-04-24 Thread Andreas Klöckner
Q: No such file or directory Also, numpy doesn't use setuptools and therefore doesn't install an egg-info on Python 2.4, so that often setuptools will wrongly conclude that it's not installed, even if it is. Ideas? Is this something worth fixing for 1.1.0? If so, I'll open a ti

Re: [Numpy-discussion] access ndarray in C++

2008-04-23 Thread Andreas Klöckner
as on the C++ side and Numpy on the Python side. It is somewhat like what Hoyt describes, except for a different environment. Here's a table: | Hoyt | Andreas ---++ C++ Matrix Library | Blitz++| Boost.Ublas Wrapper Ge

Re: [Numpy-discussion] access ndarray in C++

2008-04-23 Thread Andreas Klöckner
x) > SWIG > ctypes IMO, all of these deal better with C than they do with C++. There is also a number of more C++-affine solutions: - Boost Python [1]. Especially if you want usable C++ integration. (ie. more than basic templates, etc.) - sip [2]. Used for PyQt. Andreas [1] http://www.b

  1   2   >