Is it possible to directly lookup the length of an axis in a biom.Table object, or do you need to do something like the following, where t is a Table object:
if axis == 'sample':
length = t.shape[0]
elif axis == 'observation':
length = t.shape[1]
else:
raise UnknownAxisError(axis)
It seems like a better way to do this would be with a method like t.length(axis). Does functionality like that exist?