jaxvacua.util.save_zipped_pickle

jaxvacua.util.save_zipped_pickle#

save_zipped_pickle(obj, filen, protocol=-1)#

Pickle obj and write it gzip-compressed to filen.

Parameters:
  • obj (Any) – Python object to serialise.

  • filen (str) – Output path (.gz recommended).

  • protocol (int) – Pickle protocol; default -1 (highest).

Return type:

None