ertk.utils.pad_arrays

ertk.utils.pad_arrays(arrays: List[ndarray], pad: int) List[ndarray]
ertk.utils.pad_arrays(arrays: ndarray, pad: int) ndarray

Pads each array to the nearest multiple of pad greater than the array size. This is mainly a wrapper around pad_array() that takes care of padding ragged or non-contiguous arrays.

Parameters:
arrays: list of np.ndarray

The arrays to process. Assumes axis 0 of each sub-array, or axis 1 of arrays, is the time axis.

pad: int

The multiple to pad to.

Returns:
padded_arrays:

Padded arrays.