Re: [Numpy-discussion] What is up with raw boolean indices (like a[False])?

2020-08-20 Thread Sebastian Berg
On Thu, 2020-08-20 at 17:08 -0600, Aaron Meurer wrote: > On Thu, Aug 20, 2020 at 4:38 PM Sebastian Berg > wrote: > > On Thu, 2020-08-20 at 16:00 -0600, Aaron Meurer wrote: > > > Just to be clear, what exactly do you think should be deprecated? > > > Boolean scalar indices in general, or just boole

Re: [Numpy-discussion] What is up with raw boolean indices (like a[False])?

2020-08-20 Thread Aaron Meurer
On Thu, Aug 20, 2020 at 4:38 PM Sebastian Berg wrote: > > On Thu, 2020-08-20 at 16:00 -0600, Aaron Meurer wrote: > > Just to be clear, what exactly do you think should be deprecated? > > Boolean scalar indices in general, or just boolean scalars combined > > with other arrays, or something else? >

Re: [Numpy-discussion] What is up with raw boolean indices (like a[False])?

2020-08-20 Thread Sebastian Berg
On Thu, 2020-08-20 at 16:00 -0600, Aaron Meurer wrote: > Just to be clear, what exactly do you think should be deprecated? > Boolean scalar indices in general, or just boolean scalars combined > with other arrays, or something else? My angle is that we should allow only: * Any number of integer a

Re: [Numpy-discussion] What is up with raw boolean indices (like a[False])?

2020-08-20 Thread Aaron Meurer
Just to be clear, what exactly do you think should be deprecated? Boolean scalar indices in general, or just boolean scalars combined with other arrays, or something else? Aaron Meurer On Thu, Aug 20, 2020 at 3:56 PM Sebastian Berg wrote: > > On Thu, 2020-08-20 at 16:50 -0500, Sebastian Berg wro

Re: [Numpy-discussion] What is up with raw boolean indices (like a[False])?

2020-08-20 Thread Sebastian Berg
On Thu, 2020-08-20 at 16:50 -0500, Sebastian Berg wrote: > On Thu, 2020-08-20 at 12:21 -0600, Aaron Meurer wrote: > > You're right. I was confusing the broadcasting logic for boolean > > arrays. > > > > However, I did find this example > > > > > > > np.arange(10).reshape((2, 5))[np.array([[0, 0,

Re: [Numpy-discussion] What is up with raw boolean indices (like a[False])?

2020-08-20 Thread Sebastian Berg
On Thu, 2020-08-20 at 12:21 -0600, Aaron Meurer wrote: > You're right. I was confusing the broadcasting logic for boolean > arrays. > > However, I did find this example > > > > > np.arange(10).reshape((2, 5))[np.array([[0, 0, 0, 0, 0]], > > > > dtype=np.int64), False] > Traceback (most recent cal

Re: [Numpy-discussion] Feature requests/Enhancements for upper-level engineering students

2020-08-20 Thread KevinBaselinesw
would your team be interested in contributing to my port of Numpy to .NET? https://github.com/Quansight-Labs/numpy.net I have the vast majority of the Numpy core working as a pure .NET library. All of the other libraries that rely on Numpy are not ported. I am sure we could find some good projec

Re: [Numpy-discussion] What is up with raw boolean indices (like a[False])?

2020-08-20 Thread Aaron Meurer
You're right. I was confusing the broadcasting logic for boolean arrays. However, I did find this example >>> np.arange(10).reshape((2, 5))[np.array([[0, 0, 0, 0, 0]], dtype=np.int64), >>> False] Traceback (most recent call last): File "", line 1, in IndexError: shape mismatch: indexing array

[Numpy-discussion] Feature requests/Enhancements for upper-level engineering students

2020-08-20 Thread cooperrc
Greetings, As the Fall semester is fast approaching (10 days away for us at UConn), we are looking for senior design (also called capstone) projects for the 2020-2021 school year. The COVID situation has strengthened the need for remote work. The process here is that students are assigned to proje