From 33f4fbb30ca0d4d0a0fa1ab2ae0421a0e7c10431 Mon Sep 17 00:00:00 2001 From: daniel-dudt Date: Wed, 15 May 2024 09:51:01 -0400 Subject: [PATCH] write VMEC input CURTOR --- desc/vmec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: