[Numpy-discussion] Re: Adding bfill() to numpy.

2024-05-20 Thread george trojan
xarray has both bfill and ffill for DataArrays. The implementation useless bottleneck https://github.com/pydata/bottleneck. Le lun. 20 mai 2024, à 13 h 22, Warren Weckesser a écrit : > On Mon, May 20, 2024 at 9:06 AM Raquel Braunschweig via > NumPy-Discussion wrote: > > > > Hello everyone, > >

[Numpy-discussion] Re: Improved 2DFFT Approach

2024-03-11 Thread george trojan
I think the argument nworkers = -1 to scipy.fft.fft2 and scipy.fft.ifft2 is in the wrong places in the notebook. Le lun. 11 mars 2024, à 21 h 25, via NumPy-Discussion < numpy-discussion@python.org> a écrit : > Good afternoon, Ralf. > > We have done some of the measurements you recommended, for

[Numpy-discussion] Re: How is "round to N decimal places" defined for binary floating point numbers?

2023-12-28 Thread george trojan
With regard to CPython, there is a recent discussion on this topic: https://discuss.python.org/t/trying-to-understand-rounding-in-python/28014 Le jeu. 28 déc. 2023, à 21 h 43, Stefano Miccoli via NumPy-Discussion < numpy-discussion@python.org> a écrit : > I have always been puzzled about how to

Re: [Numpy-discussion] deprecating float(x) for ndim > 0

2021-09-15 Thread george trojan
To Andrew Nelson: > In the return section for fsolve the documentation states that the return > value, `x`, is an `ndarray`. True, my bad. There is another issue with `fsolve`: it implicitly changes the argument passed to `func`. Consider def func(x): # x = float(x) if not

Re: [Numpy-discussion] deprecating float(x) for ndim > 0

2021-09-15 Thread george trojan
Responding to the post by nico.schloe...@gmail.com (I subscribe to the digest). I just wrote the following code: twb = scipy.optimize.fsolve(phi, tdb, args=(tdb, p, w, hd_tdb, hg_tdb), xtol=1e-8) tdb, p, w, hd_tdb, hg_tdb twb.shape print("wet-bulb temperature {:.5f} [deg K]".format(float(twb)))