Re: [Numpy-discussion] Depreciating asfortranarray and ascontiguousarray

2018-10-30 Thread Sebastian Berg
On Sat, 2018-10-27 at 19:29 +1300, Ralf Gommers wrote: > > > On Sat, Oct 27, 2018 at 6:37 PM Eric Wieser < > wieser.eric+nu...@gmail.com> wrote: > > > in order to be used prior to calling C or Fortran code that > > > expected at least a 1-d array > > > > > > > > > > I'm a big supporter of m

Re: [Numpy-discussion] Vectorized version of numpy.linspace

2018-11-14 Thread Sebastian Berg
On Wed, 2018-11-14 at 14:32 -0500, Marten van Kerkwijk wrote: > Code being better than words: see > https://github.com/numpy/numpy/pull/12388 for an implementation. The > change in the code proper is very small, though it is worrying that > it causes two rather unrelated tests too fail (even if ar

Re: [Numpy-discussion] Vectorized version of numpy.linspace

2018-11-15 Thread Sebastian Berg
On Wed, 2018-11-14 at 14:46 -0800, Stephan Hoyer wrote: > > > On Wed, Nov 14, 2018 at 2:35 PM Sebastian Berg < > sebast...@sipsolutions.net> wrote: > > On Wed, 2018-11-14 at 14:32 -0500, Marten van Kerkwijk wrote: > > some old issue or even PR somewhere. > >

[Numpy-discussion] Add guaranteed no-copy to array creation and reshape?

2018-12-26 Thread Sebastian Berg
Hi all, In https://github.com/numpy/numpy/pull/11897 I am looking into the addition of a `copy=np.never_copy` argument to: * np.array * arr.reshape/np.reshape * arr.astype Which would cause an error to be raised when numpy cannot guarantee that the returned array is a view of the input arra

Re: [Numpy-discussion] Add guaranteed no-copy to array creation and reshape?

2018-12-27 Thread Sebastian Berg
On Wed, 2018-12-26 at 16:40 -0800, Ralf Gommers wrote: > > > On Wed, Dec 26, 2018 at 3:29 PM Sebastian Berg < > sebast...@sipsolutions.net> wrote: > > Hi all, > > > > In https://github.com/numpy/numpy/pull/11897 I am looking into the > > addi

Re: [Numpy-discussion] Add guaranteed no-copy to array creation and reshape?

2018-12-27 Thread Sebastian Berg
"never" > The implementation of np.never_copy is a little verbose / ugly > Eric > > On Thu, Dec 27, 2018, 1:41 AM Ralf Gommers wrote: > > > > > On Wed, Dec 26, 2018 at 3:29 PM Sebastian Berg < > > sebast...@sipsolutions.net> wrote: > > &

Re: [Numpy-discussion] Add guaranteed no-copy to array creation and reshape?

2018-12-28 Thread Sebastian Berg
On Thu, 2018-12-27 at 17:45 -0800, Nathaniel Smith wrote: > On Thu, Dec 27, 2018 at 3:27 PM Juan Nunez-Iglesias < > jni.s...@gmail.com> wrote: > > On Fri, Dec 28, 2018, at 3:40 AM, Sebastian Berg wrote: > > > > > It’s consistent with np.newaxis in spelling (modulo

Re: [Numpy-discussion] Add guaranteed no-copy to array creation and reshape?

2018-12-29 Thread Sebastian Berg
On Sat, 2018-12-29 at 17:16 +0100, Matthias Geier wrote: > Hi Sebastian. > > I don't have an opinion (yet) about this matter, but I have a > question: > > On Thu, Dec 27, 2018 at 12:30 AM Sebastian Berg wrote: > > [...] > > > new_arr = arr.reshape(new_sha

Re: [Numpy-discussion] Add guaranteed no-copy to array creation and reshape?

2018-12-30 Thread Sebastian Berg
On Sun, 2018-12-30 at 16:03 +0100, Matthias Geier wrote: > On Sat, Dec 29, 2018 at 6:00 PM Sebastian Berg wrote: > > On Sat, 2018-12-29 at 17:16 +0100, Matthias Geier wrote: > > > Hi Sebastian. > > > > > > I don't have an opinion (yet) about

Re: [Numpy-discussion] Add guaranteed no-copy to array creation and reshape?

2019-01-02 Thread Sebastian Berg
On Wed, 2019-01-02 at 11:27 +0100, Matthias Geier wrote: > Hi Sebastian. > > Thanks for the clarification. > > > print(arr.shape) # also (5, 2) > > > > so the arr container (shape, dtype) is changed/muted. I think we > > expect > > that for content here, but not for the shape. > > Thanks for

Re: [Numpy-discussion] Add guaranteed no-copy to array creation and reshape?

2019-01-07 Thread Sebastian Berg
On Mon, 2019-01-07 at 20:04 +0100, Matthias Geier wrote: > On Wed, Jan 2, 2019 at 2:24 PM Sebastian Berg wrote: > > On Wed, 2019-01-02 at 11:27 +0100, Matthias Geier wrote: > > > Hi Sebastian. > > > > > > Thanks for the clarification. > > >

Re: [Numpy-discussion] Pairwise summation

2019-01-07 Thread Sebastian Berg
On Mon, 2019-01-07 at 12:15 -0800, Keith Goodman wrote: > Numpy uses pairwise summation along the fast axis if that axis > contains no more than 8192 elements. How was 8192 chosen? > It is simply a constant used throughout the ufunc machinery (and iteration) for cache friendliness. However, that

Re: [Numpy-discussion] Add guaranteed no-copy to array creation and reshape?

2019-01-11 Thread Sebastian Berg
On Fri, 2019-01-11 at 13:57 +1100, Juan Nunez-Iglesias wrote: > > > > On 10 Jan 2019, at 6:35 pm, Todd wrote: > > > > Could this approach be used to deprecate `ravel` and let us just > > use `flatten`? > > > Could we not? `.ravel()` is everywhere and it matches > `ravel_multi_index` and `unra

Re: [Numpy-discussion] summation along a non-fast axis

2019-01-11 Thread Sebastian Berg
On Fri, 2019-01-11 at 12:32 -0800, Keith Goodman wrote: > I remember back when a.sum(axis=0) was much slower than a.sum(axis=1) > for something like a=np.ones((1000, 1000)). But now it runs in about > the same time. How does numpy do it? > "now" is since numpy 1.7 or so :). > Does numpy do somet

[Numpy-discussion] Adding count parameter to unpackbits (PR-10855)

2019-02-21 Thread Sebastian Berg
Hi all, I was about to merge it, but was noot sure it was really discussed before (and it would be a long time ago). The pull requests: https://github.com/numpy/numpy/pull/10855 Proposes to add a count parameter to unpackbits: ``count`` allows subsetting the number of bits that will be unpacked

Re: [Numpy-discussion] NEP-18 comment

2019-03-07 Thread Sebastian Berg
On Wed, 2019-03-06 at 12:41 -0800, Stephan Hoyer wrote: > On Wed, Mar 6, 2019 at 10:10 AM Frederic Bastien > wrote: > > Hi, > > > > I was told recently about the NEP-18. I like it, but I have a > > comment. > > > > At first, it is enabled in a release by setting an environment > > variable. >

Re: [Numpy-discussion] NEP-18 comment

2019-03-07 Thread Sebastian Berg
On Thu, 2019-03-07 at 18:24 +, Frederic Bastien wrote: > I see speed changes vs behavior changes as different category of > changes in my mind. > > I understand that now importing library can slow down NumPy for small > arrays. > But I have the impression you tell this can also give behavior >

Re: [Numpy-discussion] Introducing myself

2019-03-23 Thread Sebastian Berg
Hello Malika and welcome, On Sat, 2019-03-23 at 02:08 +0100, Brinda wrote: > Hello, I am called Malika. > My outreachy initial application has been recently approved. I am new > to this community and I'm really eager to work on this project. > Please I wish someone explains to me how to get star

Re: [Numpy-discussion] Beginner Help: Generating HTML using Sphinx

2019-03-30 Thread Sebastian Berg
Hi Sanchi, On Sat, 2019-03-30 at 15:58 +0530, Sanchi Vaishnavi wrote: > I was learning to get to $ make html to work. These are the final > steps that I used on my test branch in my numpy repo: > > > $ sphinx-build -b html doc/source builddir > > >> build succeeded, 165 warnings. > > $ make

Re: [Numpy-discussion] Outreachy applicant introduction

2019-03-30 Thread Sebastian Berg
On Sat, 2019-03-30 at 19:21 +0530, Parul Unofficial wrote: > Hello! > > I'm Parul Aggarwal, a pre-final year student from India pursuing my > bachelor's in Computer Science. I'm comfortable programming in C++ > and Python and have also worked previously on some projects based on > flask, Django.

Re: [Numpy-discussion] type and kind for custom dtypes

2019-05-05 Thread Sebastian Berg
Hi Alex, On Sun, 2019-05-05 at 11:03 -0400, Alex Samuel wrote: > > On May 5, 2019, at 10:58, Alex Samuel wrote: > > > > Through trial and error, I've found that if I choose an unused type > > code for each dtype, coercion seems to work as I expect it to (no > > coercion unless I've provided a ca

Re: [Numpy-discussion] type and kind for custom dtypes

2019-05-05 Thread Sebastian Berg
OK, I looked into the code, so here is a small followup. On Sun, 2019-05-05 at 10:58 -0400, Alex Samuel wrote: > Hi, > > I'm working on building a number of related custom dtypes, and I'm > not sure how to set the type and kind fields in PyArray_Descr. I > tried using type='V' and choosing a si

Re: [Numpy-discussion] casting from datetime64

2019-05-12 Thread Sebastian Berg
Hi Alex, On Mon, 2019-05-13 at 00:35 -0400, Alex Samuel wrote: > Hi, > > When registering a custom cast function from datetime64 to another > dtype, how can I get the units? > > I am calling PyArray_RegisterCastFunc from NPY_DATETIME. Ideally, > I'd like to register a separate cast function for

[Numpy-discussion] Converting np.sinc into a ufunc

2019-05-22 Thread Sebastian Berg
Hi all, there is an open PR (https://github.com/numpy/numpy/pull/12924) to convert `np.sinc` into a ufunc. Since it should improve general precision in `np.sinc`, I thought we could try to move that forward a bit. We check whether this is worth it or not in the end. However, it would also change

Re: [Numpy-discussion] Converting np.sinc into a ufunc

2019-05-23 Thread Sebastian Berg
On Thu, 2019-05-23 at 10:17 -0400, Marten van Kerkwijk wrote: > I agree that we should not have two functions > > I also am rather unsure whether a ufunc is a good idea. Earlier, > while discussing other possible additions, like `erf`, the conclusion > seemed to be that in numpy we should just cov

[Numpy-discussion] __skip_array_function__ discussion summary

2019-05-23 Thread Sebastian Berg
Hi all, This is an attempt from me to wrap up the discussion a bit so that others can chime in if they want to. NumPy 1.17 will ship with `__array_function__` a way for array like projects (dask, cupy) to override almost all numpy functions [0]. This addition is uncontroversial. NumPy 1.17 will _

[Numpy-discussion] Histgrom density estimation (density kwarg) with out of range values

2019-05-31 Thread Sebastian Berg
Hi all, unfortunately it was noticed in Issue 13604 [0] that when histogram is given used with a specified range and the `density=True` keyword argument out of bound values are simply discarded [1]. Discarding out of bound values makes sense when the density/normed option is not used, since in th

Re: [Numpy-discussion] defining a NumPy API standard?

2019-06-02 Thread Sebastian Berg
On Sun, 2019-06-02 at 08:38 +0200, Ralf Gommers wrote: > > > On Sun, Jun 2, 2019 at 3:18 AM Marten van Kerkwijk < > m.h.vankerkw...@gmail.com> wrote: > > > Our API is huge. A simple count: > > > main namespace: 600 > > > fft: 30 > > > linalg: 30 > > > random: 60 > > > ndarray: 70 > > > lib: 20 >

Re: [Numpy-discussion] defining a NumPy API standard?

2019-06-03 Thread Sebastian Berg
On Sun, 2019-06-02 at 08:42 +0200, Ralf Gommers wrote: > > > > > > > > > This sounds like a restructuring or factorization of the API, in > > order to make it smaller, and thus easier to learn and use. > > It may start with the docs, by paying more attention to the "core" > > or important func

[Numpy-discussion] Moving forward with value based casting

2019-06-05 Thread Sebastian Berg
Hi all, TL;DR: Value based promotion seems complex both for users and ufunc- dispatching/promotion logic. Is there any way we can move forward here, and if we do, could we just risk some possible (maybe not-existing) corner cases to break early to get on the way? --- Currently when you

Re: [Numpy-discussion] Moving forward with value based casting

2019-06-05 Thread Sebastian Berg
On Wed, 2019-06-05 at 14:14 -0700, Stephan Hoyer wrote: > On Wed, Jun 5, 2019 at 1:43 PM Sebastian Berg < > sebast...@sipsolutions.net> wrote: > > Hi all, > > > > > > Because `uint8(127)` can also be a `int8`, but uint8(128) it is not > > as > >

Re: [Numpy-discussion] Moving forward with value based casting

2019-06-05 Thread Sebastian Berg
, 2019-06-05 at 15:41 -0500, Sebastian Berg wrote: > Hi all, > > TL;DR: > > Value based promotion seems complex both for users and ufunc- > dispatching/promotion logic. Is there any way we can move forward > here, > and if we do, could we just risk some possible (maybe not-

Re: [Numpy-discussion] Moving forward with value based casting

2019-06-06 Thread Sebastian Berg
true for almost all functions inside numpy), lookup could be simplified. For those loops with all the same dtype, the issue is fairly straight forward anyway, because I can just decide how to handle the scalar before hand. Best, Sebastian > > Tyler > > On Wed, 5 Jun 2019 at 15:

Re: [Numpy-discussion] Moving forward with value based casting

2019-06-06 Thread Sebastian Berg
On Wed, 2019-06-05 at 21:35 -0400, Marten van Kerkwijk wrote: > Hi Sebastian, > > Tricky! It seems a balance between unexpected memory blow-up and > unexpected wrapping (the latter mostly for integers). > > Some comments specifically on your message first, then some more > general related ones.

Re: [Numpy-discussion] Moving forward with value based casting

2019-06-06 Thread Sebastian Berg
, but the behaviour is tricky. Users can pass `dtype` explicitly, but that is a huge kludge... Will think about if there is a solution to that, because if there is not, you are right. It has to be a "big step" kind of release. Although, even then it would be nice to have warnings that can b

Re: [Numpy-discussion] Moving forward with value based casting

2019-06-07 Thread Sebastian Berg
On Fri, 2019-06-07 at 07:18 +0200, Ralf Gommers wrote: > > > On Fri, Jun 7, 2019 at 1:37 AM Nathaniel Smith wrote: > > My intuition is that what users actually want is for *native Python > > types* to be treated as having 'underspecified' dtypes, e.g. int is > > happy to coerce to int8/int32/int

Re: [Numpy-discussion] Moving forward with value based casting

2019-06-07 Thread Sebastian Berg
On Thu, 2019-06-06 at 19:34 -0400, Allan Haldane wrote: > On 6/6/19 12:46 PM, Sebastian Berg wrote: > > On Thu, 2019-06-06 at 11:57 -0400, Allan Haldane wrote: > > > I think dtype-based casting makes a lot of sense, the problem is > > > backward compatibility. > >

Re: [Numpy-discussion] Moving forward with value based casting

2019-06-07 Thread Sebastian Berg
On Fri, 2019-06-07 at 13:19 -0500, Sebastian Berg wrote: > On Fri, 2019-06-07 at 07:18 +0200, Ralf Gommers wrote: > > > > On Fri, Jun 7, 2019 at 1:37 AM Nathaniel Smith > > wrote: > > > My intuition is that what users actually want is for *native > > > Pyth

Re: [Numpy-discussion] Extent to which to work around matrix and other duck/subclass limitations

2019-06-11 Thread Sebastian Berg
On Tue, 2019-06-11 at 10:56 +0200, Ralf Gommers wrote: > > > On Mon, Jun 10, 2019 at 7:47 PM Marten van Kerkwijk < > m.h.vankerkw...@gmail.com> wrote: > > Hi All, > > > > In https://github.com/numpy/numpy/pull/12801, Tyler has been trying > > to use the new `where` argument for reductions to imp

[Numpy-discussion] (Value Based Promotion) Current Behaviour

2019-06-11 Thread Sebastian Berg
signature.asc Description: This is a digitally signed message part ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] (Value Based Promotion) Current Behaviour

2019-06-11 Thread Sebastian Berg
o come up again later). All the Best, Sebastian - PS: Below a copy of what I wrote: --- title: Numpy Value Based Promotion Rules author: Sebastian Berg --- NumPy Value Based Scalar Casting and Promotion == This document

[Numpy-discussion] New release note strategy after branching 1.17.

2019-06-12 Thread Sebastian Berg
Hi all, we had discussed trying a new strategy to gather release notes on the last community call, but not followed up on it on the list yet. For the next release, we decided to try a strategy of using a wiki page to gather release notes. The main purpose for this is to avoid merge conflicts in t

Re: [Numpy-discussion] (Value Based Promotion) Current Behaviour

2019-06-12 Thread Sebastian Berg
; > those are likely to come up again later). > > > > All the Best, > > > > Sebastian > > > > > > - > > > > PS: Below a copy of what I wrote: > > > > --- > > title: Numpy Value Based Promotion

Re: [Numpy-discussion] Moving forward with value based casting

2019-06-12 Thread Sebastian Berg
On Wed, 2019-06-05 at 15:41 -0500, Sebastian Berg wrote: > Hi all, > > TL;DR: > > Value based promotion seems complex both for users and ufunc- > dispatching/promotion logic. Is there any way we can move forward > here, > and if we do, could we just risk some poss

Re: [Numpy-discussion] New release note strategy after branching 1.17.

2019-06-12 Thread Sebastian Berg
ave an opinion. - Sebastian > On Wed, Jun 12, 2019, 07:59 Sebastian Berg < > sebast...@sipsolutions.net> wrote: > > Hi all, > > > > we had discussed trying a new strategy to gather release notes on > > the > > last community call, but not followed

Re: [Numpy-discussion] (Value Based Promotion) Current Behaviour

2019-06-12 Thread Sebastian Berg
On Wed, 2019-06-12 at 12:03 -0500, Sebastian Berg wrote: > On Tue, 2019-06-11 at 22:08 -0400, Marten van Kerkwijk wrote: > > HI Sebastian, > > > > Thanks for the overview! In the value-based casting, what perhaps > > surprises me most is that it is done within a

Re: [Numpy-discussion] New release note strategy after branching 1.17.

2019-06-12 Thread Sebastian Berg
On Wed, 2019-06-12 at 17:34 -0700, Nathaniel Smith wrote: > On Wed, Jun 12, 2019 at 12:58 PM Marten van Kerkwijk > wrote: > > Overall, in favour of splitting the large files, but I don't like > > that the notes stop being under version control (e.g., a follow-up > > PR slightly changes things, how

Re: [Numpy-discussion] (Value Based Promotion) Current Behaviour

2019-06-13 Thread Sebastian Berg
ed special "minimum value" rules. And of course it also means that resolvers need to handle such scalar(?) objects, but in many cases they do not need more than "can cast" anyway. Best, Sebastian > Best Regards, > Hameer Abbasi > > > On Wednesday, Jun 12, 2

Re: [Numpy-discussion] Planning for 1.18

2019-06-14 Thread Sebastian Berg
On Thu, 2019-06-13 at 19:09 -0600, Charles R Harris wrote: > Hi All, > > With the 1.17 branch coming soon, this might be a good time to make > plans about 1.18 development. A couple of possibilities are: > > Expiring old deprecations, Good plan. > Removing Python 2.7 compatibility code, Sounds

[Numpy-discussion] NumPy Community Meeting June 19

2019-06-17 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting on June 12 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in-progress meeting notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg?both Best wishes Sebastian signature.asc Description: This is a digitally signed message part _

Re: [Numpy-discussion] Moving forward with value based casting

2019-06-18 Thread Sebastian Berg
Hi Hameer, On Tue, 2019-06-18 at 04:28 +0200, Hameer Abbasi wrote: > On Wed, 2019-06-12 at 12:55 -0500, Sebastian Berg wrote: > > On Wed, 2019-06-05 at 15:41 -0500, Sebastian Berg wrote: > > > Hi all, > > > > A type is safely castable to another if all of these

Re: [Numpy-discussion] Moving forward with value based casting

2019-06-21 Thread Sebastian Berg
On Wed, 2019-06-05 at 21:35 -0400, Marten van Kerkwijk wrote: > Hi Sebastian, > > Tricky! It seems a balance between unexpected memory blow-up and > unexpected wrapping (the latter mostly for integers). > > Some comments specifically on your message first, then some more > general related ones.

[Numpy-discussion] Better way to create multiple independent random number generators

2019-06-21 Thread Sebastian Berg
Hi all, since this is going to be a new addition as part of the randomgen, I thought I would just mention it on the mailing list. The Pull Request: https://github.com/numpy/numpy/pull/13780 Implements a new SeedSequence object based on Robert Kern's proposal and especially the work by Prof. O'Ne

Re: [Numpy-discussion] Syntax Improvement for Array Transpose

2019-06-23 Thread Sebastian Berg
On Sun, 2019-06-23 at 19:51 +, Hameer Abbasi wrote: > +1 for this. I have often seen (and sometimes written) code that does > this automatically, and it is a common mistake. Yeah, likely worth a short. I doubt many uses for the n-dimensional axis transpose, so maybe a futurewarning approach ca

Re: [Numpy-discussion] Syntax Improvement for Array Transpose

2019-06-23 Thread Sebastian Berg
On Sun, 2019-06-23 at 23:03 +0200, Andras Deak wrote: > On Sun, Jun 23, 2019 at 10:37 PM Sebastian Berg > wrote: > > Yeah, likely worth a short. I doubt many uses for the n-dimensional > > axis transpose, so maybe a futurewarning approach can work. If not, > > I > &g

Re: [Numpy-discussion] Syntax Improvement for Array Transpose

2019-06-23 Thread Sebastian Berg
Probably an error is good, which is nice, because we can just tag on a warning and not worry about it for a while ;). > > All the best, > > Marten > > On Sun, Jun 23, 2019 at 4:37 PM Sebastian Berg < > sebast...@sipsolutions.net> wrote: > > On Sun, 2019-0

[Numpy-discussion] NumPy Community Meeting Thursday, June 26

2019-06-24 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting on _Thursday_ June 26 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg?both Best wishes Sebastian PS: We decided to move to Thursday, since at least Matti

Re: [Numpy-discussion] NumPy Community Meeting Thursday, June 27

2019-06-24 Thread Sebastian Berg
Sorry, Thursday is the 27th of course. On Mon, 2019-06-24 at 11:02 -0700, Sebastian Berg wrote: > Hi all, > > There will be a NumPy Community meeting on _Thursday_ June 26 at 11 > am > Pacific Time. Everyone is invited to join in and edit the work-in- > progress meeting notes:

Re: [Numpy-discussion] Syntax Improvement for Array Transpose

2019-06-25 Thread Sebastian Berg
On Tue, 2019-06-25 at 14:18 -0400, Cameron Blocker wrote: > It seems to me that the general consensus is that we shouldn't be > changing .T to do what we've termed matrix transpose or conjugate > transpose. As such, the discussion of whether .T should be changed to > throw errors or warnings on 1D

Re: [Numpy-discussion] Syntax Improvement for Array Transpose

2019-06-25 Thread Sebastian Berg
On Tue, 2019-06-25 at 17:00 -0400, Marten van Kerkwijk wrote: > Hi Kirill, others, > > Indeed, it is becoming long! That said, while initially I was quite > charmed by Eric's suggestion of deprecating and then changing `.T`, I > think the well-argued opposition to it has changed my opinion. > Perh

Re: [Numpy-discussion] Syntax Improvement for Array Transpose

2019-06-26 Thread Sebastian Berg
On Wed, 2019-06-26 at 17:22 -0400, Marten van Kerkwijk wrote: > Hi Ralf, > > I realize you feel strongly that this whole thread is rehashing > history, but I think it is worth pointing out that many seem to > consider that the criterion for allowing backward incompatible > changes, i.e., that "exi

[Numpy-discussion] NumPy Community Meeting Wednesday, July 3

2019-07-02 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting Wednesday July 3 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg Best wishes Sebastian ___ NumPy-Discussion mai

[Numpy-discussion] No Community Meeting this Week

2019-07-08 Thread Sebastian Berg
Hi all, due to the SciPy conference we will _not_ have a Community meeting this week. We will have a developer meeting at the SciPy conference on Friday at 1pm in room 108 and take part in the Sprints. I will send a tentative Agenda/things to discuss in a separate email. Best, Sebastian signat

[Numpy-discussion] Developer Meeting @SciPy Conference, Friday 1pm

2019-07-08 Thread Sebastian Berg
Hi all, we have reserved a room for a Developer meeting at SciPy. The meeting is planned for Friday at 1pm in room 108. I have created a tentative Agenda with some broad discussion points at: https://hackmd.io/rg0DI0JASKeZ_G5bTJ3YSA Please feel free to edit or add the Agenda. All the Best, Seb

Re: [Numpy-discussion] Developer Meeting @SciPy Conference, Friday 1pm

2019-07-12 Thread Sebastian Berg
Hi all, just a quick reminder that we have the meeting in about an hour. If you wish to attend/chat from externally, please shoot me an email, I am sure we can set up something. Best, Sebastian On Mon, 2019-07-08 at 12:56 -0700, Sebastian Berg wrote: > Hi all, > > we have reserved a

[Numpy-discussion] NumPy Community Meeting Wednesday, July 17

2019-07-16 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting Wednesday July 17 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting topics and notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg Best wishes Sebastian signature.asc Description: This is a digitally signed

Re: [Numpy-discussion] Helping with website improvements

2019-07-16 Thread Sebastian Berg
On Tue, 2019-07-16 at 07:06 -0600, Charles R Harris wrote: > Hi Dashamir, > > On Mon, Jul 15, 2019 at 4:49 PM Dashamir Hoxha > wrote: > > Hi, > > > > With respect to this call for contributions: > > https://github.com/numpy/numpy/pull/13988/files > > I would like to help with improving the webs

[Numpy-discussion] NumPy Community Meeting Wednesday, July 24

2019-07-23 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting Wednesday July 24 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting topics and notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg Best wishes Sebastian signature.asc Description: This is a digitally signed

Re: [Numpy-discussion] Creating a sine wave with exponential decay

2019-07-23 Thread Sebastian Berg
On Tue, 2019-07-23 at 13:38 -0500, Stanley Seibert wrote: > (Full disclosure: I work on Numba...) > > Just to note, the NumPy implementation will allocate (and free) more > than 2 arrays to compute that expression. It has to allocate the > result array for each operation as Python executes. Tha

Re: [Numpy-discussion] Adding generic dtypes

2019-07-25 Thread Sebastian Berg
Hey, On Thu, 2019-07-25 at 11:35 -0600, Charles R Harris wrote: > Hi All, > > The possibility of disabling default creation of object arrays has > come up again. I'm wondering if one way to get there is to allow > generic dtypes. The `numpy/core/numerictypes.py` module defines a > hierarchy, and

Re: [Numpy-discussion] Adding generic dtypes

2019-07-29 Thread Sebastian Berg
es+einstein.edison=gmail....@python.org> on > behalf of Sebastian Berg > Sent: Thursday, July 25, 2019 11:23 pm > To: numpy-discussion@python.org > Subject: Re: [Numpy-discussion] Adding generic dtypes > > Hey, > > On Thu, 2019-07-25 at 11:35 -0600, Charles R Harris

[Numpy-discussion] NumPy Community Meeting Wednesday, July 17

2019-07-30 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting Wednesday July 31 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting topics and notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg Best wishes Sebastian signature.asc Description: This is a digitally signed

Re: [Numpy-discussion] NEP 30 - Duck Typing for NumPy Arrays - Implementation

2019-08-06 Thread Sebastian Berg
On Tue, 2019-08-06 at 10:24 +0200, Peter Andreas Entschev wrote: > Thanks for the concerns raised, and Stephan for promptly answering > them. > > > An alternative to introducing np.duckarray() would be to just > > modify np.asarray(). Of course this has backwards compatibility > > impact, but if y

[Numpy-discussion] NumPy Community Meeting Wednesday, July 17

2019-08-06 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting Wednesday August 7 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting topics and notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg Best wishes Sebastian PS: (Sorry if you recently updated the file, I may ha

[Numpy-discussion] NumPy Community Meeting Wednesday, August 14

2019-08-13 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting Wednesday August 14 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting topics and notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg Best wishes Sebastian signature.asc Description: This is a digitally signe

Re: [Numpy-discussion] NumPy Community Meeting Wednesday, August 14

2019-08-14 Thread Sebastian Berg
On Wed, 2019-08-14 at 13:45 +0100, Azeez Abdulsamod wrote: > When will there be Numpy community in Nigeria > These meetings are online through video/telephone conference. The link information is in the hackmd link. - Sebastian > On Tue, Aug 13, 2019, 3:31 PM Sebastian Berg &

Re: [Numpy-discussion] Releasing the GIL in ufuncs dealing with object arrays

2019-08-19 Thread Sebastian Berg
Hi Joris, On Mon, 2019-08-19 at 17:35 +0200, Joris Van den Bossche wrote: > Hi all, > > PyGEOS (https://github.com/caspervdw/pygeos) is an experimental > package implementing a set of numpy ufuncs to provide vectorized > geometry functionality (wrapping the C++ GEOS library). > > The way it does

[Numpy-discussion] NumPy Community Meeting Wednesday, Aug. 21

2019-08-19 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting Wednesday August 21 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting topics and notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg?both Best wishes Sebastian signature.asc Description: This is a digitally

Re: [Numpy-discussion] Releasing the GIL in ufuncs dealing with object arrays

2019-08-21 Thread Sebastian Berg
On Tue, 2019-08-20 at 22:30 +0200, Joris Van den Bossche wrote: > Hi Sebastian, > > Thanks for the answer! > > On Mon, 19 Aug 2019 at 17:57, Sebastian Berg < > sebast...@sipsolutions.net> wrote: > > ... > > > > Hmmm, interesting use case. No, I do not

[Numpy-discussion] NumPy Community Meeting Wednesday, Aug. 28

2019-08-27 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting Wednesday August 28 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting topics and notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg?both Best wishes Sebastian BEGIN:VCALENDAR PRODID:-//Ximian//NONSGML Evoluti

[Numpy-discussion] NumPy Community Meeting Wednesday, Sep. 4

2019-09-03 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting Wednesday September 4 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting topics and notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg?both Best wishes Sebastian BEGIN:VCALENDAR PRODID:-//Ximian//NONSGML Evolu

Re: [Numpy-discussion] NEP 32: Remove the financial functions from NumPy

2019-09-03 Thread Sebastian Berg
On Tue, 2019-09-03 at 08:56 -0400, Warren Weckesser wrote: > Github issue 2880 ("Get financial functions out of main namespace", Very briefly, I am absolutely in favor of this. Keeping the functions in numpy seems more of a liability than help anyone. And this push is more likely to help users b

Re: [Numpy-discussion] NEP 31 — Context-local and global overrides of the NumPy API

2019-09-07 Thread Sebastian Berg
this won't > work. We have no bug report yet because 1.17.x hasn't landed in conda > defaults yet (perhaps this is a/the reason why?), but it will be a > problem. > > > The import numpy.overridable part is meant to help garner adoption, > > and to prefer the unump

Re: [Numpy-discussion] NEP 31 — Context-local and global overrides of the NumPy API

2019-09-09 Thread Sebastian Berg
On Mon, 2019-09-09 at 20:32 -0700, Stephan Hoyer wrote: > On Mon, Sep 9, 2019 at 6:27 PM Ralf Gommers > wrote: > > I think we've chosen to try the former - dispatch on functions so > > we can reuse the NumPy API. It could work out well, it could give > > some long-term maintenance issues, time wil

Re: [Numpy-discussion] NEP 31 — Context-local and global overrides of the NumPy API

2019-09-09 Thread Sebastian Berg
`type(duckarray).…` on library authors. I guess the important thing is mostly what would be convenient to downstreams implementers. - Sebastian > Eric > > On Mon, Sep 9, 2019, 21:18 Sebastian Berg > wrote: > > On Mon, 2019-09-09 at 20:32 -0700, Stephan Hoyer wrote: > &g

Re: [Numpy-discussion] NEP 31 — Context-local and global overrides of the NumPy API

2019-09-10 Thread Sebastian Berg
On Tue, 2019-09-10 at 17:28 +0200, Hameer Abbasi wrote: > On 07.09.19 22:06, Sebastian Berg wrote: > > On Fri, 2019-09-06 at 14:45 -0700, Ralf Gommers wrote: > > > > > > > > Let me try to move the discussion from the github issue here (this > > may

[Numpy-discussion] NumPy Community Meeting Wednesday, Sep. 11

2019-09-10 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting Wednesday September 11 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting topics and notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg?both Best wishes Sebastian BEGIN:VCALENDAR PRODID:-//Ximian//NONSGML Evol

Re: [Numpy-discussion] NumPy Community Survey

2019-09-12 Thread Sebastian Berg
Hi all, On Thu, 2019-08-29 at 00:41 -0400, Inessa Pawson wrote: > You know that NumPy is essential to the Python community. The NumPy > team wants you to know that YOU, our user and developer community, > are essential to us. That’s why we are putting together a team to > create the inaugural Num

[Numpy-discussion] NumPy Community Meeting Wednesday, Sep. 18

2019-09-17 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting Wednesday September 18 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting topics and notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg?both Best wishes Sebastian BEGIN:VCALENDAR PRODID:-//Ximian//NONSGML Evol

[Numpy-discussion] DType Roadmap/NEP Discussion

2019-09-18 Thread Sebastian Berg
Hi all, to try and make some progress towards a decision since the broad design is pretty much settling from my side. I am thinking about making a meeting, and suggest Monday at 11am Pacific Time (I am open to other times though). My hope is to get everyone interested on board, so that we can mak

Re: [Numpy-discussion] DType Roadmap/NEP Discussion

2019-09-19 Thread Sebastian Berg
On Wed, 2019-09-18 at 21:33 -0700, Ralf Gommers wrote: > Hi Sebastian, > > > On Wed, Sep 18, 2019 at 4:35 PM Sebastian Berg < > sebast...@sipsolutions.net> wrote: > > Hi all, > > > > to try and make some progress towards a decision since the broad > &g

Re: [Numpy-discussion] DType Roadmap/NEP Discussion

2019-09-20 Thread Sebastian Berg
On Thu, 2019-09-19 at 21:35 +0300, Matti Picus wrote: > On 19/9/19 2:34 am, Sebastian Berg wrote: > > Hi all, > > > > to try and make some progress towards a decision since the broad > > design > > is pretty much settling from my side. I am thinking about making

Re: [Numpy-discussion] DType Roadmap/NEP Discussion

2019-09-23 Thread Sebastian Berg
On Mon, 2019-09-23 at 13:44 +0200, Ralf Gommers wrote: > > > On Mon, Sep 23, 2019 at 1:40 PM Tom Augspurger < > tom.w.augspur...@gmail.com> wrote: > > > > On Fri, Sep 20, 2019 at 3:10 PM Sebastian Berg < > > sebast...@sipsolutions.net> wrote: > >

Re: [Numpy-discussion] DType Roadmap/NEP Discussion

2019-09-23 Thread Sebastian Berg
t; > > tom.w.augspur...@gmail.com> wrote: > > > On Fri, Sep 20, 2019 at 3:10 PM Sebastian Berg < > > > sebast...@sipsolutions.net> wrote: > > > > On Thu, 2019-09-19 at 21:35 +0300, Matti Picus wrote: > > > > > On 19/9/19 2:34 am, Sebastian Berg w

[Numpy-discussion] NumPy Community Meeting Wednesday, Sep. 25

2019-09-24 Thread Sebastian Berg
Hi all, There will be a NumPy Community meeting Wednesday September 25 at 11 am Pacific Time. Everyone is invited to join in and edit the work-in- progress meeting topics and notes: https://hackmd.io/76o-IxCjQX2mOXO_wwkcpg?both Best wishes Sebastian BEGIN:VCALENDAR PRODID:-//Ximian//NONSGML Evol

[Numpy-discussion] UFunc out argument not forcing high precision loop?

2019-09-27 Thread Sebastian Berg
Hi all, Looking at the ufunc dispatching rules with an `out` argument, I was a bit surprised to realize this little gem is how things work: ``` arr = np.arange(10, dtype=np.uint16) + 2**15 print(arr) # array([ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18], dtype=uint16) out = np.zeros(10) np.add(arr,

Re: [Numpy-discussion] UFunc out argument not forcing high precision loop?

2019-09-27 Thread Sebastian Berg
On Fri, 2019-09-27 at 11:50 -0700, Sebastian Berg wrote: > Hi all, > > Looking at the ufunc dispatching rules with an `out` argument, I was > a > bit surprised to realize this little gem is how things work: > > ``` > arr = np.arange(10, dtype=np.uint16) + 2**15 > print

Re: [Numpy-discussion] UFunc out argument not forcing high precision loop?

2019-09-27 Thread Sebastian Berg
probably work with that assumption, without actually breaking anything.) - Sebastian > On Fri, Sep 27, 2019, 15:02 Sebastian Berg < > sebast...@sipsolutions.net> wrote: > > On Fri, 2019-09-27 at 11:50 -0700, Sebastian Berg wrote: > > > Hi all, > > > > > &

Re: [Numpy-discussion] NEP 32 is accepted. Now the work begins...

2019-09-28 Thread Sebastian Berg
On Sat, 2019-09-28 at 13:15 -0400, Warren Weckesser wrote: > On 9/27/19, Warren Weckesser wrote: > > NumPy devs, > > > > NEP 32 to remove the financial functions > > (https://numpy.org/neps/nep-0032-remove-financial-functions.html) > > has > > been accepted. > > CI gurus: the web page containing

Re: [Numpy-discussion] Forcing gufunc to error with size zero input

2019-09-28 Thread Sebastian Berg
On Sun, 2019-09-29 at 00:20 -0400, Warren Weckesser wrote: > On 9/28/19, Eric Wieser wrote: > > Can you just raise an exception in the gufuncs inner loop? Or is > > there no > > mechanism to do that today? > > Maybe? I don't know what is the idiomatic way to handle errors > detected in an inner

<    1   2   3   4   5   6   7   >