acoustotreams.ScalarSphericalWaveBasis.__getitem__¶
- ScalarSphericalWaveBasis.__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 “plm”, or “lm” can be used to select only a corresponding subset of the attrubutes
pidx,l, andm.