Re: [Numpy-discussion] Add sliding_window_view method to numpy

2020-10-12 Thread Juan Nunez-Iglesias
Looks gorgeous, thank you to all who worked on the implementation, API, and review, and thank you Sebastian for saving me a click! 😂 > On 13 Oct 2020, at 2:25 am, Sebastian Berg wrote: > > On Mon, 2020-10-12 at 08:39 +, Zimmermann Klaus wrote: >> Hello, >> >> I would like to draw the atten

Re: [Numpy-discussion] Add sliding_window_view method to numpy

2020-10-12 Thread Sebastian Berg
On Mon, 2020-10-12 at 08:39 +, Zimmermann Klaus wrote: > Hello, > > I would like to draw the attention of this list to PR #17394 [1] that > adds the implementation of a sliding window view to numpy. > Hi, thanks for working on this and driving going forward. I like the choice of a minimal A

Re: [Numpy-discussion] The mu.py script will keep running and never end.

2020-10-12 Thread Robert Kern
On Mon, Oct 12, 2020 at 10:50 AM Hongyi Zhao wrote: > On Mon, Oct 12, 2020 at 10:41 PM Andrea Gavana > wrote: > > > That is not what I meant: what I meant is: write the time consuming part > of your code in C or Fortran and then bridge it to Python using Cython or > f2py. > > I understand your m

Re: [Numpy-discussion] The mu.py script will keep running and never end.

2020-10-12 Thread Hongyi Zhao
On Mon, Oct 12, 2020 at 10:41 PM Andrea Gavana wrote: > > Hi, > > On Mon, 12 Oct 2020 at 16.22, Hongyi Zhao wrote: >> >> On Mon, Oct 12, 2020 at 9:33 PM Andrea Gavana >> wrote: >> > >> > Hi, >> > >> > On Mon, 12 Oct 2020 at 14:38, Hongyi Zhao wrote: >> >> >> >> On Sun, Oct 11, 2020 at 3:42 PM

Re: [Numpy-discussion] The mu.py script will keep running and never end.

2020-10-12 Thread Andrea Gavana
Hi, On Mon, 12 Oct 2020 at 16.22, Hongyi Zhao wrote: > On Mon, Oct 12, 2020 at 9:33 PM Andrea Gavana > wrote: > > > > Hi, > > > > On Mon, 12 Oct 2020 at 14:38, Hongyi Zhao wrote: > >> > >> On Sun, Oct 11, 2020 at 3:42 PM Evgeni Burovski > >> wrote: > >> > > >> > On Sun, Oct 11, 2020 at 9:55 A

Re: [Numpy-discussion] The mu.py script will keep running and never end.

2020-10-12 Thread Hongyi Zhao
On Mon, Oct 12, 2020 at 9:33 PM Andrea Gavana wrote: > > Hi, > > On Mon, 12 Oct 2020 at 14:38, Hongyi Zhao wrote: >> >> On Sun, Oct 11, 2020 at 3:42 PM Evgeni Burovski >> wrote: >> > >> > On Sun, Oct 11, 2020 at 9:55 AM Evgeni Burovski >> > wrote: >> > > >> > > The script seems to be computing

Re: [Numpy-discussion] The mu.py script will keep running and never end.

2020-10-12 Thread Andrea Gavana
Hi, On Mon, 12 Oct 2020 at 14:38, Hongyi Zhao wrote: > On Sun, Oct 11, 2020 at 3:42 PM Evgeni Burovski > wrote: > > > > On Sun, Oct 11, 2020 at 9:55 AM Evgeni Burovski > > wrote: > > > > > > The script seems to be computing the particle numbers for an array of > chemical potentials. > > > > >

Re: [Numpy-discussion] The mu.py script will keep running and never end.

2020-10-12 Thread Hongyi Zhao
On Sun, Oct 11, 2020 at 3:42 PM Evgeni Burovski wrote: > > On Sun, Oct 11, 2020 at 9:55 AM Evgeni Burovski > wrote: > > > > The script seems to be computing the particle numbers for an array of > > chemical potentials. > > > > Two ways of speeding it up, both are likely simpler then using dask:

[Numpy-discussion] Add sliding_window_view method to numpy

2020-10-12 Thread Zimmermann Klaus
Hello, I would like to draw the attention of this list to PR #17394 [1] that adds the implementation of a sliding window view to numpy. Having a sliding window view in numpy is a longstanding open issue (cf #7753 [2] from 2016). A brief summary of the discussions surrounding it can be found in th