distarray.__len__ should only return shape[0]