darfix.tests.utils.createRandomEDFDataset#

darfix.tests.utils.createRandomEDFDataset(dims, nb_data_files=20, header=False, _dir=None, in_memory=True, num_dims=3)[source]#

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

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

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

  • header (bool) – If True, a random header is created for every frame.

  • _dir (str or None) – Directory to save the temporary files.

:return Dataset: generated instance of Dataset