reV.utilities.pytest_utils.make_fake_h5_chunks

make_fake_h5_chunks(td, features, shuffle=False)[source]

Make fake h5 chunks to test collection

Parameters:
  • td (tempfile.TemporaryDirectory) – Test TemporaryDirectory

  • features (list) – List of dsets to write to chunks

  • shuffle (bool) – Whether to shuffle gids

Returns:

  • out_pattern (str) – Pattern for output file names

  • data (ndarray) – Full non-chunked data array

  • features (list) – List of feature names in output

  • s_slices (list) – List of spatial slices used to chunk full data array

  • times (pd.DatetimeIndex) – Times in output