From fef383a84f5b149f9f7db18bb7e6ebe81cd6e8b6 Mon Sep 17 00:00:00 2001 From: Dario Panici Date: Fri, 23 Aug 2024 10:47:57 -0400 Subject: [PATCH] fix bug in nyquist freq --- desc/vmec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desc/vmec.py b/desc/vmec.py index ea64dd0927..04f989fb1c 100644 --- a/desc/vmec.py +++ b/desc/vmec.py @@ -250,7 +250,7 @@ def save( # noqa: C901 - FIXME - simplify N = eq.N M_nyq = M + 4 if M_nyq is None else M_nyq N_nyq = N + 2 if N_nyq is None else N_nyq - N_nyq = 0 if N is None else N_nyq + N_nyq = 0 if int(N) == 0 else N_nyq # VMEC radial coordinate: s = rho^2 = Psi / Psi(LCFS) s_full = np.linspace(0, 1, surfs)