There are QDataSet methods for determining the length of each dimension (length(), with varying arguments). It would be helpful to have a method that returns the total number of elements in a dataset, regardless of the number or length of the dimensions (or whether or not it is a Qube).
Or is there a standard python/jython function that can reliable serve this function?
Sorry I missed this, Ivar. If the data is a QUBE (data from almost any source is), then it's easier, but here is code for either case: