desc.compat.flip_theta

desc.compat.flip_theta(eq)Source

Change the gauge freedom of the poloidal angle of an Equilibrium.

Equivalent to redefining theta_new = theta_old + π

Parameters:

eq (Equilibrium or iterable of Equilibrium) – Equilibria to redefine the poloidal angle of.

Returns:

eq (Equilibrium or iterable of Equilibrium) – Same as input, but with the poloidal angle redefined.