modelarrayio.storage.utils.compute_full_subject_chunk_shape

modelarrayio.storage.utils.compute_full_subject_chunk_shape(n_files: int, n_elements: int, item_chunk: int, target_chunk_mb: float, storage_np_dtype: str | dtype | type[floating]) tuple[int, int][source]

Compute a 2-D chunk/tile shape that spans all subjects.