darfix.tests.utils.createRandomHDF5Dataset#

darfix.tests.utils.createRandomHDF5Dataset(dims, nb_data_frames=20, output_file=None, in_memory=True, num_dims=3, metadata=False)[source]#

Simple creation of a dataset in output_file with the requested number of data files and dark files.

Parameters:
  • dims (tuple of int) – dimensions of the files.

  • nb_data_frames (int) – Number of data files to create.

  • output_file (str or None) – output HDF5 file

  • in_memory – if True load the Dataset in memory

  • num_dims (int) – number of dimensions of the dataset

:return Dataset: generated instance of Dataset