prsctrl.scripts.compression.compress_data#

compress_data(datadir: str, remove_uncompressed: bool = True)[source]#

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

Parameters:
  • datadir – Data directory

  • remove_uncompressed – If True, the original (uncompressed) file is deleted after compression

Raises:

FileNotFoundError

Returns:

tuple of (datadir, Exception, Traceback) if an error occures or (datadir, None, None) if successful (this make batch-processing with process pools more convenient)