Re: [Numpy-discussion] Which NumPy/Numpy/numpy spelling?

2016-09-08 Thread Bartosz Telenczuk
> The footer appended by the mailing list shows that the name it’s right but > only the subject tag is wrong. It’s trivial to fix. You are probably right, but I wouldn't like to mess up with people's mail filters (some of which may depend on the subject tag).

Re: [Numpy-discussion] Which NumPy/Numpy/numpy spelling?

2016-09-06 Thread Bartosz Telenczuk
t. :). There is also some instances of "Numpy" spelling in numpy sources, but changing them would probably need more care and time. If everyone agrees the PRs could be merged together. Please review and comment! Thanks in advance, Bartosz ___

Re: [Numpy-discussion] Which NumPy/Numpy/numpy spelling?

2016-08-29 Thread Bartosz Telenczuk
ies use similar dichotomies: - Django - import django - Cython - import cython - PyYAML - import yaml - scikit-learn - import sklearn On the other hand all standard Python libraries are lower-case named. Cheers, Bartosz [1] https://www.python.org/dev/peps/pep-0008/#package-and-module-

Re: [Numpy-discussion] Conditional update of recarray field

2012-11-28 Thread Bartosz
I got it. Thanks! Now I see why this is non-trivial to fix it. However, it might be also a source of very-hard-to-find bugs. It might be worth discussing this non-intuitive example in the documentation. Cheers, Bartosz >> Thanks for answer, Francesc. >> >> I understand now t

Re: [Numpy-discussion] Conditional update of recarray field

2012-11-28 Thread Bartosz
Thanks for answer, Francesc. I understand now that fancy indexing returns a copy of a recarray. Is it also true for standard ndarrays? If so, I do not understand why X['a'][cond]=-1 should work. Cheers, Bartosz On Wed 28 Nov 2012 03:05:37 PM CET, Francesc Alted wrote: > On 11/

[Numpy-discussion] Conditional update of recarray field

2012-11-28 Thread Bartosz
cted? Would it be possible to emit a warning message in the case of "faulty" assignments? Bartosz ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] preferred way of testing empty arrays

2012-01-27 Thread Bartosz Telenczuk
rn x.size == 0 >else: > return bool(x) Bartosz ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] preferred way of testing empty arrays

2012-01-27 Thread Bartosz Telenczuk
omplex. In fact, Python provides False values for most empty objects, but NumPy seems to ignore this. It might be a good idea to have a helper function which handles all objects consistently. Yours, Bartosz ___ NumPy-Discussion mailing list NumPy

[Numpy-discussion] preferred way of testing empty arrays

2012-01-27 Thread Bartosz Telenczuk
ne: ... print 'hello' hello Although this behaviour is expected, it may be very confusing and it easily leads to errors. Even worse it adds unnecessary complexity in the code, because arrays, lists and None have to be handled differently. I hoped the I managed to explain the pro

[Numpy-discussion] numpy.var fails on memmap

2011-02-01 Thread Bartosz Telenczuk
map' object has no attribute 'filename' I can produce this bug in numpy 1.5.1 with python2.6 (from macports). Cheers, Bartosz Institute for Theoretical Biology Humboldt University of Berlin Germany http://neuroscience.telenczuk.pl ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion