[Numpy-discussion] savetxt -> gzip: nondeterministic because of time stamp

Robert Kern robert.kern at gmail.com
Wed Apr 14 17:15:02 EDT 2021

On Wed, Apr 14, 2021 at 4:37 PM Joachim Wuttke <j.wuttke at fz-juelich.de>

> Regarding numpy, I'd propose a bolder measure:
> To let savetxt(fname, X, ...) store exactly the same information in
> compressed and uncompressed files, always invoke gzip with mtime = 0.

I agree.

> I would like to follow up with a pull request, but I am unable to
> find out how numpy.savetxt is invoking gzip.

`savetxt` uses the abstractions in this module to invoke gzip when the
filename calls for it:


Robert Kern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/numpy-discussion/attachments/20210414/f3fd86a7/attachment.html>

More information about the NumPy-Discussion mailing list