desc.coils.FourierXYCoil.from_values
- classmethod FourierXYCoil.from_values(current, coords, N=10, s=None, basis='xyz', name='')Source
Fit coordinates to FourierXYCoil representation.
- Parameters:
current (float) – Current through the coil, in Amperes.
coords (ndarray, shape (num_coords,3)) – Coordinates to fit a FourierXYCurve object with each column corresponding to xyz or rpz depending on the basis argument.
N (int) – Fourier resolution of the new X & Y representation.
s (ndarray or "arclength") – Arbitrary curve parameter to use for the fitting. Should be monotonic, 1D array of same length as coords. if None, defaults linearly spaced in [0,2pi) Alternative, can pass “arclength” to use normalized distance between points.
basis ({"rpz", "xyz"}) – Basis for input coordinates. Defaults to “xyz”.
name (str) – Name for this curve.
- Returns:
curve (FourierXYCoil) – New representation of the coil parameterized by a Fourier series for X & Y.