diff --git a/desc/vmec.py b/desc/vmec.py index 14280a4ca2..bcc6b143e2 100644 --- a/desc/vmec.py +++ b/desc/vmec.py @@ -1472,7 +1472,7 @@ def write_vmec_input(cls, eq, fname, header="", **kwargs): # noqa: C901 else: current = eq.current f.write(" NCURR = 1\n") # current profile specified - f.write(" CURTOR = {:+14.8E}\n".format(float(current(1)))) # AC scale + f.write(" CURTOR = {:+14.8E}\n".format(float(current(1)[0]))) # AC scale if isinstance(current, PowerSeriesProfile) and current.sym: f.write(" AC =") # current power series coefficients for ac in current.params: