Re: [Numpy-discussion] np.diff on boolean arrays now raises

2017-06-15 Thread Charles R Harris
On Thu, Jun 15, 2017 at 6:16 AM, Charles R Harris wrote: > > > On Thu, Jun 15, 2017 at 4:35 AM, Ralf Gommers > wrote: > >> >> >> On Thu, Jun 15, 2017 at 7:08 PM, Jaime Fernández del Río < >> jaime.f...@gmail.com> wrote: >> >>> There is an ongoing discussion on github: >>> >>> https://github.com/

Re: [Numpy-discussion] np.diff on boolean arrays now raises

2017-06-15 Thread Charles R Harris
On Thu, Jun 15, 2017 at 4:35 AM, Ralf Gommers wrote: > > > On Thu, Jun 15, 2017 at 7:08 PM, Jaime Fernández del Río < > jaime.f...@gmail.com> wrote: > >> There is an ongoing discussion on github: >> >> https://github.com/numpy/numpy/issues/9251 >> >> In 1.13 np.diff has started raising on boolean

Re: [Numpy-discussion] np.diff on boolean arrays now raises

2017-06-15 Thread Sebastian Berg
On Thu, 2017-06-15 at 22:35 +1200, Ralf Gommers wrote: > > > On Thu, Jun 15, 2017 at 7:08 PM, Jaime Fernández del Río gmail.com> wrote: > > There is an ongoing discussion on github: > > > > https://github.com/numpy/numpy/issues/9251 > > > > In 1.13 np.diff has started raising on boolean arrays

Re: [Numpy-discussion] np.diff on boolean arrays now raises

2017-06-15 Thread Ralf Gommers
On Thu, Jun 15, 2017 at 7:08 PM, Jaime Fernández del Río < jaime.f...@gmail.com> wrote: > There is an ongoing discussion on github: > > https://github.com/numpy/numpy/issues/9251 > > In 1.13 np.diff has started raising on boolean arrays, since subtraction > of boolean arrays is now deprecated. >

[Numpy-discussion] np.diff on boolean arrays now raises

2017-06-15 Thread Jaime Fernández del Río
There is an ongoing discussion on github: https://github.com/numpy/numpy/issues/9251 In 1.13 np.diff has started raising on boolean arrays, since subtraction of boolean arrays is now deprecated. A decision has to be made whether: - raising an error is the correct thing to do, and only the d