ndim

property TransmissionMatrix.ndim

As for numpy.ndarray