modelarrayio.storage.h5_storage.compute_chunk_shape_full_subjects

modelarrayio.storage.h5_storage.compute_chunk_shape_full_subjects(n_files, n_elements, item_chunk, target_chunk_mb, storage_np_dtype)[source]

Compute a chunk shape for a full subject.

Parameters:
  • n_files (int) – Number of subjects.

  • n_elements (int) – Number of items.

  • item_chunk (int) – Item chunk.

  • target_chunk_mb (float) – Target chunk size in MB.

  • storage_np_dtype (numpy.dtype) – Storage numpy dtype.

Returns:

Chunk shape.

Return type:

tuple