utils

Currently we only provide API reference to user facing functions.

checkListType(thisList, atype)

Returns True if and only if thisList is a list and the type of the first non-list value found in thisList is an instance of atype or the length of that list is 0.

getListDims(thisList)

Given a list that may be an ND array of lists where all of the lists at each element for the ndim > 1 case have the same shape, this returns a list of the shape of the list of lists (ND array shape)