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

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

2019-09-28 Thread Warren Weckesser
On 9/29/19, 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 loop. And pushing this parti

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

2019-09-28 Thread Warren Weckesser
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 loop. And pushing this particular error detection into the inner loop does

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

2019-09-28 Thread Warren Weckesser
On 9/28/19, Sebastian Berg wrote: > 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 accep

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 Eric Wieser
Can you just raise an exception in the gufuncs inner loop? Or is there no mechanism to do that today? I don't think you were proposing that core dimensions should _never_ be allowed to be 0, but if you were I disagree. I spent a fair amount of work enabling that for linalg because it provided some

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

2019-09-28 Thread Warren Weckesser
I'm experimenting with gufuncs, and I just created a simple one with signature '(i)->()'. Is there a way to configure the gufunc itself so that an empty array results in an error? Or would I have to create a Python wrapper around the gufunc that does the error checking? Currently, when passed an

Re: [Numpy-discussion] error during pip install

2019-09-28 Thread Charles R Harris
On Sat, Sep 28, 2019 at 11:23 AM Alan Isaac wrote: > On 9/28/2019 12:12 PM, Charles R Harris wrote: > > I'm actually pleased that the install succeeded on Window, although you > won't have good BLAS/LAPACK, just the numpy C versions of lapack_lite. The > warning/error is a bit > > concerning thou

Re: [Numpy-discussion] error during pip install

2019-09-28 Thread Alan Isaac
On 9/28/2019 12:12 PM, Charles R Harris wrote: I'm actually pleased that the install succeeded on Window, although you won't have good BLAS/LAPACK, just the numpy C versions of lapack_lite. The warning/error is a bit concerning though, it would be nice to know if it is from Python3.8 pip or numpy

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

2019-09-28 Thread Warren Weckesser
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 the rendered NEPs, https://numpy.org/neps/, has not updated since the pull req

Re: [Numpy-discussion] error during pip install

2019-09-28 Thread Charles R Harris
On Sat, Sep 28, 2019 at 9:45 AM Alan Isaac wrote: > >>> On Fri, Sep 27, 2019 at 10:12 AM Alan Isaac wrote: > >> Upgrading numpy with pip on Python 3.8b4 on Win 10 > >> produced: > >> ERROR: Could not install packages due to an > >> EnvironmentError: [WinError 123] The filename, >

Re: [Numpy-discussion] error during pip install

2019-09-28 Thread Alan Isaac
On Fri, Sep 27, 2019 at 10:12 AM Alan Isaac wrote: Upgrading numpy with pip on Python 3.8b4 on Win 10 produced: ERROR: Could not install packages due to an EnvironmentError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '"C:' H