array_split.ShapeSplitter.convert_halo_to_array_form

ShapeSplitter.convert_halo_to_array_form(halo)[source]

Converts the halo argument to a (self.array_shape.size, 2) shaped array.

Parameters:halo (None, int, self.array_shape.size length sequence of int or (self.array_shape.size, 2) shaped array of int) – Halo to be converted to (len(self.array_shape), 2) shaped array form.
Return type:numpy.ndarray
Returns:A (len(self.array_shape), 2) shaped array of numpy.int64 elements.