orbithunter.core.Orbit.cell_shift¶
-
Orbit.
cell_shift
(n_cell, axis=0)[source]¶ Rotate by period/n_cell in either axis.
- Parameters
- n_cellint or array-like
Fraction of the domain to rotate by.
- axisint or array-like
The numpy ndarray axes along which to roll
- Returns
- OrbitKS :
Instance with rolled state
Notes
If provided tuples of ints, shift and axis need to be the same length as to be coherent.