adjacent_toroidal_angles#
- cherab.lhd.machine.wall.adjacent_toroidal_angles(phi: float, phis: ndarray) tuple[int64, int64]Source#
Generate adjacent toroidal angles.
If
phis = [0.0, 0.5, 1.0,..., 18.0]and givenphi = 0.75, then (left, right) adjacent toroidal angles are (0.5, 1.0), each index of which is (1, 2), respectively.- Parameters:
- phi
float Toroidal angle between 0 and 18 degree.
- phis(
N, ) array_like 1D array of toroidal angles.
- phi
- Returns: