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

> 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:

https://github.com/numpy/numpy/blob/main/numpy/lib/_datasource.py#L115

-- 
Robert Kern
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion

Reply via email to