prsctrl.scripts.compression#

Functions to compress the full-data (binary, pickle) file in the final data directories using gzip. Compression reduces the overall size of a data directory (including plots and csvs, which remain uncomopressed) to ~1/3. The PrsData class can automatically decompress the data when loading it from the directory, so compression is not inconvenient. New data can be automatically compressed by passing compress=True to the write_full_binary_data() method of PrsData.

Functions

compress_all_datas

Recursively compress the full data files in all data directories in base_dir

compress_data

Compress the full data (pickle) file of the data directory in-place.