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

2020-10-11 Thread Hongyi Zhao
On Sun, Oct 11, 2020 at 2:56 PM 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: > > First: use numpy > > 1. Move constructing mu_all out of the loop (np

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

2020-10-11 Thread Evgeni Burovski
Just remove %%timeit пн, 12 окт. 2020 г., 5:56 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. > >

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

2020-10-11 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:

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

2020-10-11 Thread Evgeni Burovski
вс, 11 окт. 2020 г., 13:31 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

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

2020-10-11 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:

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

2020-10-11 Thread Hongyi Zhao
On Sun, Oct 11, 2020 at 2:56 PM 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: What do you mean by saying *dask*? > > First: use numpy > > 1. Move co

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

2020-10-11 Thread Evgeni Burovski
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: > > First: use numpy > > 1. Move constructing mu_all out of the loop (np