mantidimaging.core.utility.size_calculator module#

mantidimaging.core.utility.size_calculator.full_size(shape: Iterable[int]) int[source]#

Compute the full size of the data, i.e. the number of elements

Parameters:

shape – The shape of the data for which the size will be calculated

Returns:

The size

mantidimaging.core.utility.size_calculator.full_size_KB(shape: Iterable[int], dtype: npt.DTypeLike) float[source]#
mantidimaging.core.utility.size_calculator.full_size_MB(shape: Iterable[int], dtype: npt.DTypeLike) float[source]#
mantidimaging.core.utility.size_calculator.full_size_bytes(shape: Iterable[int], dtype: npt.DTypeLike) int[source]#
mantidimaging.core.utility.size_calculator.number_of_images_from_indices(start: int, end: int, increment: int) int[source]#