pytemppack.utils.is_valid_ndarray

is_valid_ndarray(array)[source]

Check whether the array is an np.ndarray.

Parameters

array (np.ndarray) – The array to check.

Returns

True if the array is an np.ndarray.

Return type

bool

Examples

>>> is_valid_ndarray(np.array([1, 2, 3]))