ewoksdata.data.hdf5.config.guess_dataset_config#

ewoksdata.data.hdf5.config.guess_dataset_config(scan_shape, detector_shape, dtype=None, chunk_split=None, chunk_nbytes=None, compression_limit_nbytes=None, compression_scheme=None, max_shape=None)[source]#

Dataset configuration passed the h5py.Group.create_dataset for optimal storage (IO speed, compression, …)

Parameters:
  • scan_shape (Tuple[Optional[NewType()(PositiveIntegral, Integral)]]) –

  • detector_shape (Tuple[Optional[NewType()(PositiveIntegral, 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]]) –

  • chunk_split (Optional[Integral]) –

  • chunk_nbytes (Optional[Integral]) –

  • compression_limit_nbytes (Optional[Integral]) –

  • compression_scheme (Optional[str]) –

  • max_shape (Optional[Tuple[Optional[NewType()(StrictPositiveIntegral, Integral)]]]) –

Return type:

dict