Density.shape#
- property Density.shape#
Returns the dimensions of
Density.data
.- Returns:
- tuple
The dimensions of
Density.data
.
Examples
>>> import numpy as np >>> from tme import Density >>> dens = Density(np.array([0, 1, 1, 1, 0])) >>> dens.shape (5,)