treams.CylindricalWaveBasis.__getitem__

CylindricalWaveBasis.__getitem__(idx)

Get a subset of the basis.

This function allows index into the basis set by an integer, a slice, a sequence of integers or bools, an ellipsis, or an empty tuple. All of them except the integer and the empty tuple results in another basis set being returned. In case of the two exceptions a tuple is returned.

Alternatively, the string “pkzmp”, “kzmp”, or “kzm” can be used to access only a subset of pidx, kz, m, and pol.