Re: [Numpy-discussion] np.{bool,float,int} deprecation

2020-12-11 Thread Juan Nunez-Iglesias
> I agree. I think we should recommend sane, descriptive names that do the > right thing. So ideally we'd have people spell their dtype specifiers as > dtype=bool # or np.bool > dtype=np.float64 > dtype=np.int64 > dtype=np.complex128 > The names with underscores at the end make little se

Re: [Numpy-discussion] Installing numpy

2020-12-11 Thread Lianyuan Zheng
Hi Stanley, Thank you! Lianyuan On Fri, Dec 11, 2020 at 2:49 PM Stanley Seibert wrote: > The development version of NumPy from Github requires Python 3.7 or later. > > On Fri, Dec 11, 2020 at 1:35 PM Lianyuan Zheng > wrote: > >> Hello, >> >> On my linux server, I downloaded the NUMPY package

Re: [Numpy-discussion] Installing numpy

2020-12-11 Thread Stanley Seibert
The development version of NumPy from Github requires Python 3.7 or later. On Fri, Dec 11, 2020 at 1:35 PM Lianyuan Zheng wrote: > Hello, > > On my linux server, I downloaded the NUMPY package from GitHub (git clone > https://github.com/numpy/numpy.git) and then accessed the directory > "numpy".

[Numpy-discussion] Installing numpy

2020-12-11 Thread Lianyuan Zheng
Hello, On my linux server, I downloaded the NUMPY package from GitHub (git clone https://github.com/numpy/numpy.git) and then accessed the directory "numpy". When I typed command "python setup.py install", it shows the following message: File "setup.py", line 51 f"NumPy {VERSION} may not y

Re: [Numpy-discussion] np.{bool,float,int} deprecation

2020-12-11 Thread Robert Kern
On Fri, Dec 11, 2020 at 1:12 PM Aaron Meurer wrote: > On Fri, Dec 11, 2020 at 1:47 AM Eric Wieser > wrote: > > > > > you might want to discuss this with us at the array API standard > > > https://github.com/data-apis/array-api (which is currently in RFC > > > stage). The spec uses bool as the n

Re: [Numpy-discussion] np.{bool,float,int} deprecation

2020-12-11 Thread Aaron Meurer
On Fri, Dec 11, 2020 at 1:47 AM Eric Wieser wrote: > > > you might want to discuss this with us at the array API standard > > https://github.com/data-apis/array-api (which is currently in RFC > > stage). The spec uses bool as the name for the boolean dtype. > > I don't fully understand this argum

Re: [Numpy-discussion] np.{bool,float,int} deprecation

2020-12-11 Thread Sebastian Berg
On Fri, 2020-12-11 at 11:35 +0100, Ralf Gommers wrote: > On Thu, Dec 10, 2020 at 9:00 PM Sebastian Berg < > sebast...@sipsolutions.net> > wrote: > > Just deprecation `np.int` may make sense. That will already raise > awareness, and leaving `np.float` as-is may prevent a lot of churn. > And we

Re: [Numpy-discussion] Fixing/implementing value based Casting

2020-12-11 Thread Sebastian Berg
On Fri, 2020-12-11 at 12:09 +0100, Ralf Gommers wrote: > On Wed, Dec 9, 2020 at 5:22 PM Sebastian Berg < > sebast...@sipsolutions.net> > wrote: > > > Hi all, > > > > Sorry that this will again be a bit complicated again :(. In brief: > > > > * I would like to pass around scalars in some (part

Re: [Numpy-discussion] Fixing/implementing value based Casting

2020-12-11 Thread Ralf Gommers
On Wed, Dec 9, 2020 at 5:22 PM Sebastian Berg wrote: > Hi all, > > Sorry that this will again be a bit complicated again :(. In brief: > > * I would like to pass around scalars in some (partially new) C-API > to implement value-based promotion. > * There are some subtle commutativity issues wit

Re: [Numpy-discussion] np.{bool,float,int} deprecation

2020-12-11 Thread Ralf Gommers
On Thu, Dec 10, 2020 at 9:00 PM Sebastian Berg wrote: > On Thu, 2020-12-10 at 20:38 +0100, Ralf Gommers wrote: > > On Thu, Dec 10, 2020 at 7:25 PM Sebastian Berg < > > sebast...@sipsolutions.net> > > wrote: > > > > > On Wed, 2020-12-09 at 13:37 -0800, Stephan Hoyer wrote: > > > > On Wed, Dec 9, 2

Re: [Numpy-discussion] np.{bool,float,int} deprecation

2020-12-11 Thread Ralf Gommers
On Fri, Dec 11, 2020 at 9:47 AM Eric Wieser wrote: > > you might want to discuss this with us at the array API standard > > https://github.com/data-apis/array-api (which is currently in RFC > > stage). The spec uses bool as the name for the boolean dtype. > > I don't fully understand this argume

Re: [Numpy-discussion] np.{bool,float,int} deprecation

2020-12-11 Thread Eric Wieser
> you might want to discuss this with us at the array API standard > https://github.com/data-apis/array-api (which is currently in RFC > stage). The spec uses bool as the name for the boolean dtype. I don't fully understand this argument - `np.bool` is already not the boolean dtype. Either: * Th