[Numpy-discussion] [REL] matplotlib v2.0.0

2017-01-17 Thread Thomas Caswell
Folks, We are happy to announce the release of (long delayed) matplotlib 2.0! This release completely overhauls the default style of the plots. The source tarball and wheels for Mac, Win, and manylinux for python 2.7, 3.4-3.6 are available on pypi pip install --upgrade matplotlib and conda p

[Numpy-discussion] question about long doubles on ppc64el

2017-01-15 Thread Thomas Caswell
Folks, Over at h5py we are trying to get a release out and have discovered (via debian) that on ppc64el there is an apparent disagreement between the size of a native long double according to hdf5 and numpy. For all of the gorey details see: https://github.com/h5py/h5py/issues/817 . In short, `n

[Numpy-discussion] [REL] matplotlib 2.0.0rc2

2016-12-20 Thread Thomas Caswell
Folks, We are happy to announce matplotlib v2.0.0rc2 ! Please re-distribute this widely. This is the final planned release candidate for the long awaited mpl v2.0 release. For the full details of what is new please see http://matplotlib.org/2.0.0rc2/users/whats_new.html Some of the highlights:

[Numpy-discussion] cycler v.0.10.0 released

2016-02-15 Thread Thomas Caswell
Folks, I am happy to announce the next release of Cycler. This will become the minimal version for the upcoming mpl v2.0 release. http://matplotlib.org/cycler/ Feature release for `cycler`. This release includes a number of new features: - `Cycler` objecst learned to generate an `itertools.c

Re: [Numpy-discussion] Numpy 1.11.0b2 released

2016-02-04 Thread Thomas Caswell
The test data for mpl is available as a sperate conda package, matplotlib-tests. The reason for splitting it is 40Mb of tests images. Tom On Thu, Feb 4, 2016, 09:09 Pauli Virtanen wrote: > 04.02.2016, 07:56, Nathaniel Smith kirjoitti: > [clip] > > Whoops, got distracted talking about the resul

[Numpy-discussion] Fast vectorized arithmetic with ~32 significant digits under Numpy

2015-12-11 Thread Thomas Baruchel
h attempt should remain something external to Numpy itself and be released on my Github account without being integrated to Numpy? Best regards, -- Thomas Baruchel ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] When to stop supporting Python 2.6?

2015-12-04 Thread Aldcroft, Thomas
On Fri, Dec 4, 2015 at 6:13 AM, David Cournapeau wrote: > > > On Fri, Dec 4, 2015 at 11:06 AM, Nathaniel Smith wrote: > >> On Fri, Dec 4, 2015 at 1:27 AM, David Cournapeau >> wrote: >> > I would be in favour of dropping 3.3, but not 2.6 until it becomes too >> > cumbersome to support. >> > >> >

Re: [Numpy-discussion] Removiing 1.10.0 and 1.10.1 from sourceforge and pypi

2015-11-14 Thread Thomas Caswell
I would also vote for leaving them up. On Sat, Nov 14, 2015 at 4:21 AM Ralf Gommers wrote: > On Fri, Nov 13, 2015 at 9:04 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Fri, Nov 13, 2015 at 12:50 PM, Nathaniel Smith wrote: >> >>> On Nov 13, 2015 10:06 AM, "Charles R Ha

Re: [Numpy-discussion] NumFOCUS fiscal sponsorship agreement

2015-10-31 Thread Thomas Caswell
+1 to posting it as part of the documentation. I also like the idea of numfocus hosting the whole collection of them locally so that we can just link to them. On Sat, Oct 31, 2015, 19:01 Ralf Gommers wrote: > Hi all, > > On Wed, Oct 28, 2015 at 11:48 PM, Ralf Gommers > wrote: > >> >> Hi all, t

[Numpy-discussion] [announce] matplotlib 1.5.0 released

2015-10-29 Thread Thomas Caswell
Hey all, We are pleased to finally announce the release of matplotlib 1.5.0! It has been over a year since the last feature release and we have had over 230 people contribute to this cycle. This release of matplotlib has several major new features including - Auto-redraw using the object-orien

Re: [Numpy-discussion] Fwd: Numpy for data manipulation

2015-10-01 Thread Thomas Caswell
I would suggest %matplotlib notebook It will still have to a nice png, but you get an interactive figure when it is live. I agree that making the example code Python3 is critical. Tom On Thu, Oct 1, 2015 at 8:05 PM Jaime Fernández del Río wrote: > On Thu, Oct 1, 2015 at 11:46 AM, Alex Rogozh

[Numpy-discussion] "Numpy for Matlab Users" is missing

2015-09-25 Thread Thomas Haslwanter
Does anybody know what happened to the following links on the NumPy homepage (http://www.numpy.org/): - http://wiki.scipy.org/Wiki/NumPy_for_Matlab_Users - http://www.numpy.org/ - http://wiki.scipy.org/Numpy_Functions_by_Category They have not been available for some time now ... __

Re: [Numpy-discussion] composition of the steering council (was Re: Governance model request)

2015-09-25 Thread Thomas Caswell
To respond to the devils advocate: Creating this organizational framework is a one time boot-strapping event. You could use wording like "The initial council will include those who have made significant contributions to numpy in the past and want to be on it" or "The initial council will be cons

Re: [Numpy-discussion] ANN: numtraits v0.2

2015-09-24 Thread Thomas Robitaille
Hi Sylvain, Sylvain Corlay wrote: > Hi Thomas, > > This is great news! > > FYI, the traitlets module has been undergoing significant refactoring > lately, improving the API to favor a broader usage in the community. > One reason for this is that several projects o

Re: [Numpy-discussion] composition of the steering council (was Re: Governance model request)

2015-09-23 Thread Thomas Caswell
gt; membership in practice. > > > Someone(s) that may not have worked on the core code, but is a major > > player in the community, perhaps as the leader of a Numpy-dependent > > project. This would provide representation for the broad community. > > Pointing out features of the

[Numpy-discussion] ANN: numtraits v0.2

2015-09-23 Thread Thomas Robitaille
Hi everyone, We have released a small experimental package called numtraits that builds on top of the traitlets package and provides a NumericalTrait class that can be used to validate properties such as: * number of dimension (for arrays) * shape (for arrays) * domain (e.g. positive, negative, r

[Numpy-discussion] First release candidate for the 1.5.0 series

2015-09-18 Thread Thomas Caswell
Please give it a try! (linux64 conda builds are available on the tacaswell anaconda.org channel) https://github.com/matplotlib/matplotlib/releases/tag/v1.5.0rc1 This release contains many new features. The highlights include: - the object oriented API will now automatically re-draw the figure

Re: [Numpy-discussion] One-byte string dtype: third time's the charm?

2015-02-22 Thread Aldcroft, Thomas
On Sun, Feb 22, 2015 at 5:56 PM, Aldcroft, Thomas < aldcr...@head.cfa.harvard.edu> wrote: > > > On Sun, Feb 22, 2015 at 5:46 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Sun, Feb 22, 2015 at 3:40 PM, Aldcroft, Tho

Re: [Numpy-discussion] One-byte string dtype: third time's the charm?

2015-02-22 Thread Aldcroft, Thomas
On Sun, Feb 22, 2015 at 5:46 PM, Charles R Harris wrote: > > > On Sun, Feb 22, 2015 at 3:40 PM, Aldcroft, Thomas < > aldcr...@head.cfa.harvard.edu> wrote: > >> >> >> On Sun, Feb 22, 2015 at 2:52 PM, Nathaniel Smith wrote: >> >>> On Sun,

Re: [Numpy-discussion] One-byte string dtype: third time's the charm?

2015-02-22 Thread Aldcroft, Thomas
On Sun, Feb 22, 2015 at 2:52 PM, Nathaniel Smith wrote: > On Sun, Feb 22, 2015 at 10:21 AM, Aldcroft, Thomas > wrote: > > The idea of a one-byte string dtype has been extensively discussed twice > > before, with a lot of good input and ideas, but no action [1, 2]. > > &

[Numpy-discussion] One-byte string dtype: third time's the charm?

2015-02-22 Thread Aldcroft, Thomas
The idea of a one-byte string dtype has been extensively discussed twice before, with a lot of good input and ideas, but no action [1, 2]. tl;dr: Perfect is the enemy of good. Can numpy just add a one-byte string dtype named 's' that uses latin-1 encoding as a bridge to enable Python 3 usage in t

Re: [Numpy-discussion] New function `count_unique` to generate contingency tables.

2015-01-25 Thread Aldcroft, Thomas
On Tue, Aug 12, 2014 at 12:17 PM, Eelco Hoogendoorn < hoogendoorn.ee...@gmail.com> wrote: > Thanks. Prompted by that stackoverflow question, and similar problems I > had to deal with myself, I started working on a much more general extension > to numpy's functionality in this space. Like you noted

Re: [Numpy-discussion] Setting up a "newcomers" label on the issue tracker ?

2014-12-01 Thread Thomas Robitaille
Just to follow-on to my previous email, our labeling convention is described in more detail here: https://github.com/astropy/astropy/wiki/Issue-labeling-convention Cheers, Tom Thomas Robitaille wrote: > The issue with 'low hanging fruit' is that who is it low-hanging fruit >

Re: [Numpy-discussion] Setting up a "newcomers" label on the issue tracker ?

2014-12-01 Thread Thomas Robitaille
ot;. I think it is a better > name than "newcomers". > > On Wed, Nov 26, 2014 at 1:19 PM, Aldcroft, Thomas > mailto:aldcr...@head.cfa.harvard.edu>> > wrote: > > > > On Wed, Nov 26, 2014 at 8:24 AM, Charles R Harris > mailto:charlesr.har...@gma

Re: [Numpy-discussion] Setting up a "newcomers" label on the issue tracker ?

2014-11-26 Thread Aldcroft, Thomas
On Wed, Nov 26, 2014 at 8:24 AM, Charles R Harris wrote: > > > On Wed, Nov 26, 2014 at 2:36 AM, Sebastian Berg < > sebast...@sipsolutions.net> wrote: > >> On Mi, 2014-11-26 at 08:44 +, David Cournapeau wrote: >> > Hi, >> > >> > >> > Would anybody mind if I create a label "newcomers" on GH, an

[Numpy-discussion] numpy ignores OPT/FOPT under Python3

2014-09-09 Thread Thomas Unterthiner
CE=2 -fPIC ^C obviously, the flags aren't used in python 3. Did I overlook something here? Do $OPT/$FOPT only work in Python 2.7 by design, is this a bug or did I miss something? Cheers Thomas ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] numpy.mean still broken for large float32 arrays

2014-07-24 Thread Thomas Unterthiner
y execption than silently continue my calculations with useless/wrong results. Cheers Thomas On 2014-07-24 11:59, Eelco Hoogendoorn wrote: Arguably, this isn't a problem of numpy, but of programmers being trained to think of floating point numbers as 'real' numbers, rather t

[Numpy-discussion] numpy.mean still broken for large float32 arrays

2014-07-24 Thread Thomas Unterthiner
on why this has not been done? Cheers Thomas [1] http://mail.scipy.org/pipermail/numpy-discussion/2010-November/053697.html [2] http://numpy-discussion.10968.n7.nabble.com/Bug-in-numpy-mean-revisited-td1293.html ___ NumPy-Discussion mailing li

Re: [Numpy-discussion] String type again.

2014-07-18 Thread Aldcroft, Thomas
On Fri, Jul 18, 2014 at 11:10 AM, Julian Taylor < jtaylor.deb...@googlemail.com> wrote: > On Thu, Jul 17, 2014 at 5:48 PM, Nathaniel Smith wrote: > > On Tue, Jul 15, 2014 at 4:29 PM, Charles R Harris > > wrote: > >> Thinking more about it, the easiest thing to do might be to make the S > dtype >

Re: [Numpy-discussion] String type again.

2014-07-18 Thread Aldcroft, Thomas
On Thu, Jul 17, 2014 at 11:52 AM, Nathaniel Smith wrote: > On Tue, Jul 15, 2014 at 7:40 PM, Aldcroft, Thomas > wrote: > > > > On Sat, Jul 12, 2014 at 8:02 PM, Nathaniel Smith wrote: > >> > >> OTOH, fixed length nul padded latin1 would be useful for va

Re: [Numpy-discussion] String type again.

2014-07-18 Thread Aldcroft, Thomas
On Tue, Jul 15, 2014 at 11:15 AM, Charles R Harris < charlesr.har...@gmail.com> wrote: > > > > On Tue, Jul 15, 2014 at 5:26 AM, Sebastian Berg < > sebast...@sipsolutions.net> wrote: > >> On Sa, 2014-07-12 at 12:17 -0500, Charles R Harris wrote: >> > As previous posts have pointed out, Numpy's `S`

Re: [Numpy-discussion] String type again.

2014-07-17 Thread Aldcroft, Thomas
On Wed, Jul 16, 2014 at 6:48 AM, Todd wrote: > On Jul 16, 2014 11:43 AM, "Chris Barker" wrote: > > So numpy should have dtypes to match these. We're a bit stuck, however, > because 'S' mapped to the py2 string type, which no longer exists in py3. > Sorry not running py3 to see what 'S' does now,

Re: [Numpy-discussion] String type again.

2014-07-16 Thread Aldcroft, Thomas
On Sat, Jul 12, 2014 at 8:02 PM, Nathaniel Smith wrote: > On 12 Jul 2014 23:06, "Charles R Harris" > wrote: > > > > As previous posts have pointed out, Numpy's `S` type is currently > treated as a byte string, which leads to more complicated code in python3. > OTOH, the unicode type is stored as

[Numpy-discussion] Standard Deviation (std): Suggested change for "ddof" default value

2014-04-01 Thread Haslwanter Thomas
", or if others would agree with my suggestion to change the default to "ddof=1"? Thomas --- Prof. (FH) PD Dr. Thomas Haslwanter School of Applied Health and Social Sciences University of Applied Sciences Upper Austria FH OÖ Studienbetriebs GmbH Garnisonstraße 21 4020 Linz/Austria Tel.: +43

Re: [Numpy-discussion] 1.8.1rc1 on sourceforge.

2014-03-04 Thread Thomas Unterthiner
failed with exit status 1 The problem went away (and matplotlib installed cleanly) when I re-did the whole shebang using numpy 1.8.0, so I suspect this was caused by something in the rc. Cheers Thomas On 2014-03-03 17:23, Charles R Harris wrote: Hi All, Julian Taylor has put windows bin

Re: [Numpy-discussion] problems building numpy with ACML blas/lapack

2014-02-27 Thread Thomas Unterthiner
the Bulldozer/Piledriver code -- from https://github.com/xianyi/OpenBLAS/releases/tag/v0.2.9.rc1 Cheers Thomas On 2014-02-24 20:58, Michael Hughes wrote: Hello, I'm trying to build numpy from source to use AMD's ACML for matrix multiplication (specifically the multi-threade

Re: [Numpy-discussion] MKL and OpenBLAS

2014-02-06 Thread Thomas Unterthiner
hly surprised if OpenBLAS would be slower than Eigen, given than the developers themselves say that Eigen is "nearly as fast as GotoBLAS"[1], and that OpenBLAS was originally forked from GotoBLAS. Cheers Thomas [1] http://eigen.tuxfami

Re: [Numpy-discussion] A one-byte string dtype?

2014-01-21 Thread Aldcroft, Thomas
On Tue, Jan 21, 2014 at 8:55 AM, Charles R Harris wrote: > > > > On Tue, Jan 21, 2014 at 5:54 AM, Aldcroft, Thomas < > aldcr...@head.cfa.harvard.edu> wrote: > >> >> >> >> On Mon, Jan 20, 2014 at 6:12 PM, Charles R Harris < >> charlesr.h

Re: [Numpy-discussion] A one-byte string dtype?

2014-01-21 Thread Aldcroft, Thomas
On Mon, Jan 20, 2014 at 6:12 PM, Charles R Harris wrote: > > > > On Mon, Jan 20, 2014 at 3:58 PM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> >> On Mon, Jan 20, 2014 at 3:35 PM, Nathaniel Smith wrote: >> >>> On Mon, Jan 20, 2014 at 10:28 PM, Charles R Harris >>> wrote: >>>

Re: [Numpy-discussion] A one-byte string dtype?

2014-01-20 Thread Aldcroft, Thomas
On Mon, Jan 20, 2014 at 10:40 AM, Oscar Benjamin wrote: > On Mon, Jan 20, 2014 at 10:00:55AM -0500, Aldcroft, Thomas wrote: > > On Mon, Jan 20, 2014 at 5:11 AM, Oscar Benjamin > > wrote: > > > How significant are the performance issues? Does anyone really use > numpy &

Re: [Numpy-discussion] A one-byte string dtype?

2014-01-20 Thread Aldcroft, Thomas
On Mon, Jan 20, 2014 at 5:11 AM, Oscar Benjamin wrote: > On Fri, Jan 17, 2014 at 02:30:19PM -0800, Chris Barker wrote: > > Folks, > > > > I've been blathering away on the related threads a lot -- sorry if it's > too > > much. It's gotten a bit tangled up, so I thought I'd start a new one to > > ad

Re: [Numpy-discussion] A one-byte string dtype?

2014-01-17 Thread Aldcroft, Thomas
On Fri, Jan 17, 2014 at 5:30 PM, Chris Barker wrote: > Folks, > > I've been blathering away on the related threads a lot -- sorry if it's > too much. It's gotten a bit tangled up, so I thought I'd start a new one to > address this one question (i.e. dont bring up genfromtext here): > > Would it b

Re: [Numpy-discussion] using loadtxt to load a text file in to a numpy array

2014-01-17 Thread Aldcroft, Thomas
On Fri, Jan 17, 2014 at 4:43 PM, wrote: > On Fri, Jan 17, 2014 at 4:20 PM, Chris Barker > wrote: > > On Fri, Jan 17, 2014 at 12:36 PM, wrote: > >> > >> > ('S' ?) -- which is probably not what you want particularly if you > >> > specify > >> > an encoding. Though I can't figure out at the moment

Re: [Numpy-discussion] using loadtxt to load a text file in to a numpy array

2014-01-17 Thread Aldcroft, Thomas
On Fri, Jan 17, 2014 at 5:59 AM, Pauli Virtanen wrote: > Julian Taylor googlemail.com> writes: > [clip] > > - inconvenience in dealing with strings in python 3. > > > > bytes are not strings in python3 which means ascii data is either a byte > > array which can be inconvenient to deal with or 4

[Numpy-discussion] numpy ACML support is kind of broken

2013-10-16 Thread Thomas Unthiner
   return None # dotblas needs ATLAS, Fortran compiled blas will not be sufficient.     return ext.depends[:1]     return None    # All the best Thomas [1] http://numpy-discussion.10968.n7.nabble.com/Problems-when-using-ACML-with-numpy-td18135.html ___

[Numpy-discussion] Issue with np.median and array subclasses in 1.8.0rc (worked with 1.7.0)

2013-10-01 Thread Thomas Robitaille
Hi, The behavior for ``np.median`` and array sub-classes has changed in 1.8.0rc, which breaks unit-handling code (such as the ``quantities`` package, or ``astropy.units``): https://github.com/numpy/numpy/issues/3846 This previously worked from Numpy 1.5 (at least) to Numpy 1.7. Is there a new (a

[Numpy-discussion] Join and stacking for structured arrays

2013-09-06 Thread Aldcroft, Thomas
For the astropy Table class (which wraps numpy structured arrays), I wrote functions that perform table joins and concatenate tables along rows or columns. These are reasonably full-featured and handle most of the common needs for these operations. The join function here addresses some limitation

Re: [Numpy-discussion] Optimize removing nan-values of dataset

2013-08-14 Thread Thomas Goebel
* On 13/08/2013 23:32, David Reed wrote: > Hi Thomas, > > Your array is Nx6 do you want the nan values replace by the > mean of the 2 adjacent elemets by row or by column? Hi David, i want it to be replaced by column. I also found numpy.interp but this function replaces all nan v

[Numpy-discussion] Optimize removing nan-values of dataset

2013-08-12 Thread Thomas Goebel
Hi, i am trying to remove nan-values from an array of shape(40, 6). These nan-values at point data[x] should be replaced by the mean of data[x-1] and data[x+1] if both values at x-1 and x+1 are not nan. The function nan_to_mean (see below) is working but i wonder if i could optimize the code. I t

[Numpy-discussion] Equality not working as expected with ndarray sub-class

2013-07-04 Thread Thomas Robitaille
Hi everyone, The following example: import numpy as np class SimpleArray(np.ndarray): __array_priority__ = 1 def __new__(cls, input_array, info=None): return np.asarray(input_array).view(cls) def __eq__(self, other): return False

[Numpy-discussion] Computing least squares fit with masked array

2013-06-24 Thread Thomas Goebel
Hi list, i want to calculate the least squares fit of some data with missing values. So i masked all values using numpys masked array module. Unfortunately using linalg.lstsq i only get nan data back. Can somebody help me solve this problem? The output of np.linalg.lstsq ist: (masked_array(data

Re: [Numpy-discussion] numpy.filled, again

2013-06-14 Thread Aldcroft, Thomas
On Thu, Jun 13, 2013 at 5:06 PM, wrote: > On Thu, Jun 13, 2013 at 4:47 PM, Eric Firing wrote: > > On 2013/06/13 10:36 AM, Benjamin Root wrote: > >> > >> On Thu, Jun 13, 2013 at 9:36 AM, Aldcroft, Thomas > >> mailto:aldcr...@head.cfa.harvard.edu>> >

Re: [Numpy-discussion] numpy.filled, again

2013-06-13 Thread Aldcroft, Thomas
On Wed, Jun 12, 2013 at 2:55 PM, Eric Firing wrote: > On 2013/06/12 8:13 AM, Warren Weckesser wrote: > > That's why I suggested 'filledwith' (add the underscore if you like). > > This also allows a corresponding masked implementation, 'ma.filledwith', > > without clobbering the existing 'ma.fille

Re: [Numpy-discussion] empty_like for masked arrays

2013-06-10 Thread Aldcroft, Thomas
On Mon, Jun 10, 2013 at 3:47 PM, Nathaniel Smith wrote: > Hi all, > > Is there anyone out there using numpy masked arrays, who has an > opinion on how empty_like (and its friends ones_like, zeros_like) > should handle the mask? > > Right now apparently if you call np.ma.empty_like on a masked arr

Re: [Numpy-discussion] __getitem__ and creating an array of objects

2013-05-30 Thread Aldcroft, Thomas
On Thu, May 30, 2013 at 4:58 PM, Aldcroft, Thomas < aldcr...@head.cfa.harvard.edu> wrote: > > > > On Thu, May 30, 2013 at 4:27 PM, Robert Kern wrote: > >> On Thu, May 30, 2013 at 9:21 PM, Aldcroft, Thomas >> wrote: >> > I'm seeing some behavio

Re: [Numpy-discussion] __getitem__ and creating an array of objects

2013-05-30 Thread Aldcroft, Thomas
On Thu, May 30, 2013 at 4:27 PM, Robert Kern wrote: > On Thu, May 30, 2013 at 9:21 PM, Aldcroft, Thomas > wrote: > > I'm seeing some behavior that I can't understand when creating a numpy > array > > of Python objects. Basically it seems that np.array() is calli

[Numpy-discussion] __getitem__ and creating an array of objects

2013-05-30 Thread Aldcroft, Thomas
I'm seeing some behavior that I can't understand when creating a numpy array of Python objects. Basically it seems that np.array() is calling the object __getitem__ method for one object class but not another class, and I can't understand the difference. Here is an example, starting with a simple

Re: [Numpy-discussion] __array_priority__ ignored if __array__ is present

2013-05-30 Thread Thomas Robitaille
sn't NPY_OBJECT when you implement > __array__. > > dtypes is set with those line: > > retval = ufunc->type_resolver(ufunc, casting, > op, type_tup, dtypes); Thanks for looking into this - should this be considered a bug? Tom > > > HTH &g

[Numpy-discussion] __array_priority__ ignored if __array__ is present

2013-05-16 Thread Thomas Robitaille
Hi everyone, (this was posted as part of another topic, but since it was unrelated, I'm reposting as a separate thread) I've also been having issues with __array_priority__ - the following code behaves differently for __mul__ and __rmul__: """ import numpy as np class TestClass(object): d

Re: [Numpy-discussion] __array_priority__ don't work for gt, lt, ... operator

2013-05-12 Thread Thomas Robitaille
I've also been having issues with __array_priority__ - the following code behaves differently for __mul__ and __rmul__: """ import numpy as np class TestClass(object): def __init__(self, input_array): self.array = input_array def __mul__(self, other): print "Called __mu

[Numpy-discussion] Scalar output from sub-classed Numpy array

2013-05-10 Thread Thomas Robitaille
Hi everyone, I am currently trying to write a sub-class of Numpy ndarray, but am running into issues for functions that return scalar results rather than array results. For example, in the following case: import numpy as np class TestClass(np.ndarray): def __new__(cls, input_arr

Re: [Numpy-discussion] A proposed change to rollaxis() behavior for negative 'start' values

2013-02-15 Thread Thomas Coffee
Adding to an old discussion thread (see below) ... an implementation of the proposed functionality: from numpy import rollaxis def moveaxis(a, i, j = 0): """ move axis i of array a to position j """ n = a.ndim i = i if i >= 0 else i + n if j > i: return rollaxis(a,

[Numpy-discussion] Numpy on Travis with Python 3

2012-11-27 Thread Thomas Robitaille
Hi everyone, I'm currently having issues with installing Numpy 1.6.2 with Python 3.1 and 3.2 using pip in Travis builds - see for example: https://travis-ci.org/astropy/astropy/jobs/3379866 The build aborts with a cryptic message: ValueError: underlying buffer has been detached Has anyone seen

[Numpy-discussion] PRs for MaskedArray bugs

2012-11-14 Thread Thomas Robitaille
I've recently opened a couple of pull requests that fix bugs with MaskedArray - these are pretty straightforward, so would it be possible to consider them in time for 1.7? https://github.com/numpy/numpy/pull/2703 https://github.com/numpy/numpy/pull/2733 Thanks! Tom __

Re: [Numpy-discussion] Problems when using ACML with numpy

2012-05-12 Thread Thomas Unterthiner
On 05/12/2012 05:34 PM, Pauli Virtanen wrote: > 12.05.2012 17:30, Thomas Unterthiner kirjoitti: > [clip] >> However it didn't seem to work. The same 5000x5000 matrix-multiply is >> still spinning at 100% CPU usage. I attached to the process after I let >> it ru

Re: [Numpy-discussion] Problems when using ACML with numpy

2012-05-12 Thread Thomas Unterthiner
ed since that message was written in 2006, or I did something wrong (I am absolutely unfamiliar with the build-system used by numpy) or missed something :( Thomas 2012/5/12 Thomas Unterthiner <mailto:thomas_unterthi...@web.de>> On 05/12/2012 03:27 PM, numpy-discussion-r

Re: [Numpy-discussion] Problems when using ACML with numpy

2012-05-12 Thread Thomas Unterthiner
On 05/12/2012 03:27 PM, numpy-discussion-requ...@scipy.org wrote: > 12.05.2012 00:54, Thomas Unterthiner kirjoitti: > [clip] >> > The process will have 100% CPU usage and will not show any activity >> > under strace. A gdb backtrace looks as follows: >&g

[Numpy-discussion] Problems when using ACML with numpy

2012-05-11 Thread Thomas Unterthiner
to link by hand by adding the flag), however the error persisted. The same with numpy-1.6.2rc1. Fromt here I don't know how to proceed. Any help would be greatly appreciated :) Cheers Thomas ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] setting the same object value with a mask?

2012-04-16 Thread Thomas Tanner
))] = x # works like put -> not what I want a[array((0,2))] = x # same effect print a # -> [1 None 2 None] a[0],a[2] = x,x # set explicitly - works print a # -> [[1, 2, 'f'] None [1, 2, 'f'] None] thanks for your help! cheers, -- Thomas Tanner

Re: [Numpy-discussion] f2py and pygtk on windows

2012-03-24 Thread Thomas Kluyver
can change the Python default encoding (sys.getdefaultencoding()). That's never normally changed, so Python 2 code can assume it's always ascii. I guess pygtk sets the encoding from the system locale, so if it's set to C, it will use ascii, and the

Re: [Numpy-discussion] Re place array values

2012-03-14 Thread Derek Ashley Thomas
Hi, I'm completely new to this list (and fairly new to numpy in general), but I was wondering if you tried multiplying the bool array and the original array. Try: x=array([[0,1,2],[3,4,5],[6,7,8]]) if rank(x) <= 1 dot(x>=1, x) else (x>=1)*x This will give you a completely numerical array of

Re: [Numpy-discussion] verbose output when running python script?

2012-03-05 Thread Thomas Kluyver
n ipython or by running the python script in a > shell script? Depending on what you want this for, you might look into IPython's demo mode: http://ipython.org/ipython-doc/stable/interactive/reference.html#interactive-demos-with-ipython Thomas _

Re: [Numpy-discussion] IPython 0.12 just entered Debian Testing

2012-03-01 Thread Thomas Kluyver
On 1 March 2012 08:37, Pierre Haessig wrote: > Just to start the new month on a light & happy topic : > IPython 0.12 has entered Debian Testing ! > Thanks to Julian Taylor for handling Debian packaging. IPython 0.12 is also in the upcoming Ubuntu 1

Re: [Numpy-discussion] Buildbot/continuous integration (was Re: Issue Tracking)

2012-02-16 Thread Thomas Kluyver
he state now. You may notice an ipython-mac job in the list - one of our contributors kindly set up his Mac to run the test suite overnight, and we have ShiningPanda download the zipped results. It's a neat trick, but it's not really a solution if you're testing many OS flavours

Re: [Numpy-discussion] Numpy governance update

2012-02-16 Thread Thomas Kluyver
make the final call', through to committees, voting systems, etc. So long as everything's going well, it shouldn't restrict anyone, and it would reassure anyone who does have concerns (justified or not) about conflicts of interest. Thanks, Thomas __

Re: [Numpy-discussion] Baffling TypeError using fromfunction with explicit cast

2011-12-24 Thread Thomas Coffee
, 2011 at 7:46 PM, Thomas Coffee wrote: > Somewhat new to NumPy, but I've been investigating this for over an hour > and found nothing helpful: > > Can anyone explain why this works ... > > > >>> import numpy > >>> numpy.fromfunction(lambda i, j: i*j,

[Numpy-discussion] Baffling TypeError using fromfunction with explicit cast

2011-12-24 Thread Thomas Coffee
ade explicit? The motivation for the question is to be able to use fromfunction with a function that can return infinity, which I only know how to create with the explicit cast float('inf'). Thanks in advance for your help! - Thomas ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] upgrading to 1.6.1, lapack not used?

2011-09-13 Thread Thomas K Gamble
x27;t find libquadmath.so.0. Any ideas what might be wrong? Am I missing a dependent package somewhere? How can I force the build to use the installed lapack stuff? (installed via synaptic from the ubuntu debs) Numpy 1.5.1 builds and installs with no problems. -- Thomas K. Gamble Research Te

[Numpy-discussion] Issue with dtype and nx1 arrays

2011-08-30 Thread Thomas Robitaille
Hello, Is the following behavior normal? In [1]: import numpy as np In [2]: np.dtype([('a','http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Thomas Markovich
ython along with the scipy superpack. Thomas On Tue, Aug 2, 2011 at 12:06 PM, Ralf Gommers wrote: > > > On Tue, Aug 2, 2011 at 6:57 PM, Thomas Markovich < > thomasmarkov...@gmail.com> wrote: > >> It appears that uninstalling python 2.7 and installing the scipy superpack &

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Thomas Markovich
) ... Segmentation fault" Thomas On Tue, Aug 2, 2011 at 11:28 AM, Ralf Gommers wrote: > > > On Tue, Aug 2, 2011 at 6:14 PM, Thomas Markovich < > thomasmarkov...@gmail.com> wrote: > >> I just have the default "apple" version of python that comes with Sno

Re: [Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Thomas Markovich
ple python? On Tue, Aug 2, 2011 at 11:08 AM, Olivier Delalleau wrote: > It's a wild guess, but in the past I've had seg faults issues on Mac due to > conflicting versions of Python. Do you have multiple Python installs on your > Mac? > > -=- Olivier > > > 201

[Numpy-discussion] Segmentation Fault in Numpy.test()

2011-08-02 Thread Thomas Markovich
(dot 3)] nose version 1.1.2 Segmentation fault thomasmarkovich:~ Thomas$ What is the best wa

Re: [Numpy-discussion] broacasting question

2011-07-01 Thread Thomas K Gamble
> On Thu, Jun 30, 2011 at 11:32 AM, Thomas K Gamble > > wrote: > > I'm trying to convert some IDL code to python/numpy and i'm having some > > trouble understanding the rules for boradcasting during some operations. > > example: > > > > giv

Re: [Numpy-discussion] broacasting question

2011-07-01 Thread Thomas K Gamble
> On 30.06.2011, at 11:57PM, Thomas K Gamble wrote: > >> np.add(b.reshape(2048,3136) * c, d, out=a[:,:3136]) > >> > >> But to say whether this is really the equivalent result to what IDL > >> does, one would have to study the IDL manual in detail or direc

Re: [Numpy-discussion] broacasting question

2011-07-01 Thread Thomas K Gamble
Derek > > > ___ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > http://mail.scipy.org/mailman/listinfo/numpy-discussion -- Thomas K. Gam

Re: [Numpy-discussion] broacasting question

2011-06-30 Thread Thomas K Gamble
> On 30.06.2011, at 7:32PM, Thomas K Gamble wrote: > > I'm trying to convert some IDL code to python/numpy and i'm having some > > trouble understanding the rules for boradcasting during some operations. > > example: > > > > given the following arr

[Numpy-discussion] broacasting question

2011-06-30 Thread Thomas K Gamble
lain this to me? -- Thomas K. Gamble tkgam...@windstream.net ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Performance issues with numpy cross tabulation

2011-05-16 Thread Justin Thomas
Hello, I am having trouble with performance when trying to create a cross tabulation using numpy. Ideally, I would calculate each cell in the cross tabulation separately because this gives me the greatest amount of flexibility. I have included some sample code as a reference and am really looki

[Numpy-discussion] loop vectorization

2011-03-11 Thread Thomas K Gamble
there a way to do something like: data = sum(dot(transpose(bipData), bipData)) with dot done on the desired axis of bipData? This might give a fair speed increase. Or perhaps a different approach I'm not seeing? -- Thomas K. Gamble Research Technologist, System/Network Administrator Che

[Numpy-discussion] SOLVED: f2py "target file xxx not generated"

2011-02-16 Thread Thomas Ingeman-Nielsen
e fib1 subroutine is callable from Python. Best regards, Thomas 2011/2/16 Thomas Ingeman-Nielsen > Hi, > > I'm trying to get started with f2py on a Windows 7 environment using the > Python(x,y) v 2.6.5.6 distribution. > I'm following the introductory example of the f2p

[Numpy-discussion] f2py "target file xxx not generated"

2011-02-15 Thread Thomas Ingeman-Nielsen
ot;fib" sources f2py options: [] f2py:> c:\users\thomas\appdata\local\temp\tmpamyxnx\src.win32-2.6\fibmodule.c creating c:\users\thomas\appdata\local\temp\tmpamyxnx creating c:\users\thomas\appdata\local\temp\tmpamyxnx\src.win32-2.6 Reading fortran codes... Reading file 'fib1

[Numpy-discussion] Need a good idea: calculate the mean of many vectors

2011-02-08 Thread EMMEL Thomas
outer. Any help appriciated Thomas ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] Any idea to run the dot-product on many arrays

2011-01-13 Thread EMMEL Thomas
all of these vectors at once? Kind regards Thomas 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 one of the named recipients or have received this email in error, (i

Re: [Numpy-discussion] speed of numpy.ndarray compared to Numeric.array

2011-01-10 Thread EMMEL Thomas
e bruteForceSearch which is up to 6 times faster. But in case of a leaf in a kd-tree you end up with 50, 20, 10 or less points where the speed-up is reversed. In this particular case 34000 runs take 90s with your method and 50s with mine (not the bruteForce). I see now the limits of the arrays but

Re: [Numpy-discussion] speed of numpy.ndarray comparedtoNumeric.array

2011-01-10 Thread EMMEL Thomas
y.ndarray compared > toNumeric.array > > On Mon, Jan 10, 2011 at 6:04 PM, EMMEL Thomas > wrote: > > > > > Yes, of course and my real implementation uses exactly these methods, > > but there are still issues with the arrays. > > Did you try kd-trees in scipy ? >

Re: [Numpy-discussion] speed of numpy.ndarray compared toNumeric.array

2011-01-10 Thread EMMEL Thomas
> On Mon, Jan 10, 2011 at 5:09 PM, EMMEL Thomas > wrote: > > To John: > > > >> Did you try larger arrays/tuples? I would guess that makes a > significant > >> difference. > > > > No I didn't, due to the fact that these values are coordinat

Re: [Numpy-discussion] speed of numpy.ndarray compared to Numeric.array

2011-01-10 Thread EMMEL Thomas
array creation include the import process, which are going to be > different for each module and are probably not indicative of the speed of > array creation. No, the timeit statements counts the time for the statement in the first argument only, the import-thing isn't included in the

[Numpy-discussion] speed of numpy.ndarray compared to Numeric.array

2011-01-07 Thread EMMEL Thomas
2=x1[2]-x2[2];d0*d0+d1*d1+d2*d2','from Numeric import array as a; x1=a((1.,2.,3.));x2=a((2.,4.,6.))').timeit() #0.97426199913024902 Result: tuples are again the fastest variant, Numeric is faster than numpy and both are faster than the variant above using the high-level functions

Re: [Numpy-discussion] counting non-zero entries in an ndarray

2010-12-22 Thread Thomas K Gamble
0 > > will be used, but I'm not sure then how to "count" the number of "True" > entries. > > TIA. > > Ian one possibility: len(where(a != 0)[0]) -- Thomas K. Gamble Research Technologist, System/Network Administrator Chemical Diagnostics and Engi

  1   2   3   >