[Numpy-discussion] [ANN] pvlib participating in GSoC

2020-02-27 Thread Dr. Mark Alexander Mikofski PhD
Excited to announce that pvlib python is participating in its first ever Google Summer of Code GSoC under the NumFOCUS umbrella. If you are a student interested in modeling renewable solar energy please apply: https://summerofcode.withgoogle.com/org

Re: [Numpy-discussion] Output type of round is inconsistent with python built-in

2020-02-27 Thread Stefano Miccoli
There several mixed issues here. 1. PEP 3141 compliance. Numpy scalars are `numbers.Real` instances, and have to respect the `__round__` semantics defined by PEP 3141: def __round__(self, ndigits:Integral=None): """Rounds self to ndigits d

Re: [Numpy-discussion] Output type of round is inconsistent with python built-in

2020-02-27 Thread Hameer Abbasi
Hello, Ilhan, From: NumPy-Discussion on behalf of Ilhan Polat Reply to: Discussion of Numerical Python Date: Thursday, 27. February 2020 at 08:41 To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Output type of round is inconsistent with python built-in Oh sorry. That's tr

Re: [Numpy-discussion] Output type of round is inconsistent with python built-in

2020-02-27 Thread Robert Kern
On Thu, Feb 27, 2020 at 4:49 AM Hameer Abbasi wrote: > Hello, Ilhan, > > > > *From: *NumPy-Discussion gmail@python.org> on behalf of Ilhan Polat > *Reply to: *Discussion of Numerical Python > *Date: *Thursday, 27. February 2020 at 08:41 > *To: *Discussion of Numerical Python > *Subject: *

Re: [Numpy-discussion] Output type of round is inconsistent with python built-in

2020-02-27 Thread Robert Kern
On Thu, Feb 27, 2020 at 2:43 AM Ilhan Polat wrote: > Oh sorry. That's trigger finger np-dotting. > > What i mean is if someone was using the round method on float32 or other > small bit datatypes they would have a silent upcasting. > > Maybe not a big problem but can have significant impact. > n

Re: [Numpy-discussion] [ANN] pvlib participating in GSoC

2020-02-27 Thread Dr. Mark Alexander Mikofski PhD
Sorry, the correct link to the wiki list of project ideas is here: https://github.com/pvlib/pvlib-python/wiki/GSoC-2020-Project On Thu, Feb 27, 2020 at 12:21 AM Dr. Mark Alexander Mikofski PhD < mikof...@berkeley.edu> wrote: > Excited to announce that pvlib python >

Re: [Numpy-discussion] NEP 37: A dispatch protocol for NumPy-like modules

2020-02-27 Thread Sebastian Berg
On Sun, 2020-02-23 at 22:44 -0800, Stephan Hoyer wrote: > > > On Sun, Feb 23, 2020 at 3:59 PM Ralf Gommers > wrote: > > > Also, I'm still not sure I agree with the tone of the discussion on > > this topic. It's very heavily inspired by what the JAX devs are > > telling you (the NEP still says P