dimtest

tayph.dimtest(var, sizes, varname='var')[source] [edit on github]

This function tests the dimensions and shape of the input array var. Sizes is the number of elements on each axis.

Parameters
varlist, np.ndarray, array-like

An array with certain dimensions.

sizeslist, tuple, np.ndarray

A list of dimensions (integers) to check var against. Set a dimension to zero to be agnostic about its length.

varnamestr, optional

Name or description of the variable to assist in debugging.