[Numpy-discussion] Re: savetxt() has fmt='%.18e' as default, but fmt='%.16e' is always sufficient

2023-11-27 Thread Sam Mason
On Mon, 27 Nov 2023 at 17:19, Jeppe Dakin wrote: > > But if your true concern is that 9% of disk space, > > you probably don't want to be using `savetxt()` in any case. > Well, I do in fact want to save as text, but I would rather not do so in an > unnecessarily wasteful fashion. `fmt='%s'` migh

[Numpy-discussion] should random.standard_t allow df=inf?

2022-08-12 Thread Sam Mason
Hi, I've just stumbled across a somewhat strange behaviour when I evaluated: np.random.standard_t(np.inf) and got NaN back. The limit of df going to infinity in Student's t-distribution is a Gaussian, so I'd expect a Gaussian variate back (but I suppose a warning or error could be argued to be