acoustotreams.ScalarPlaneWaveBasisByUnitVector.__getitem__¶
- ScalarPlaneWaveBasisByUnitVector.__getitem__(idx)[source]¶
Get a subset of the basis.
This function supports indexing the basis set using an integer, a slice, an ellipsis, an empty tuple, or a sequence of integers or booleans. Indexing with an integer or an empty tuple returns a tuple; all other index types return a new basis set.
Alternatively, the string “xyz”, “xy” or “z” can be used to select only a corresponding subset of the attributes
qx,qy, andqz.