array_split.split.ShapeSplitter.calculate_split

ShapeSplitter.calculate_split()[source]

Computes the split.

Return type:numpy.ndarray
Returns:A numpy structured array of dimension len(self.array_shape). Each element of the returned array is a tuple containing len(self.array_shape) elements, with each element being a slice object. Each tuple defines a slice within the bounds self.array_start - self.halo[:, 0] to self.array_start + self.array_shape + self.halo[:, 1].