desc.coils.CoilSet.linspaced_linear

classmethod CoilSet.linspaced_linear(coil, current=None, displacement=[2, 0, 0], n=4, endpoint=False)Source

Create a coil group by repeating a coil n times in a straight line.

Parameters:
  • coil (Coil) – base coil to repeat

  • current (float or array-like, shape(n,)) – current in (each) coil

  • displacement (array-like, shape(3,)) – total displacement of the final coil

  • n (int) – number of copies of original coil

  • endpoint (bool) – whether to include a coil at final point