ewoksdata.data.hdf5.config.guess_compression#

ewoksdata.data.hdf5.config.guess_compression(data_shape, dtype, compression_limit_nbytes=None)[source]#

Compression is needed when the total data size exceeds the limits (1 MB by default).

Parameters:
  • data_shape (Tuple[NewType()(StrictPositiveIntegral, Integral)]) –

  • dtype (Union[dtype[Any], None, Type[Any], _SupportsDType[dtype[Any]], str, Tuple[Any, int], Tuple[Any, Union[SupportsIndex, Sequence[SupportsIndex]]], List[Any], _DTypeDict, Tuple[Any, Any]]) –

  • compression_limit_nbytes (Optional[Integral]) –

Return type:

bool