From 5f4509e6488d9d0d195ecdaf5371da2d19f87c00 Mon Sep 17 00:00:00 2001 From: Matt Landreman Date: Thu, 11 Jul 2024 11:34:47 -0400 Subject: [PATCH] Bugfix for logging error in boozer.py to address github issue #435 --- src/simsopt/mhd/boozer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/simsopt/mhd/boozer.py b/src/simsopt/mhd/boozer.py index b7344c873..03b69bad4 100644 --- a/src/simsopt/mhd/boozer.py +++ b/src/simsopt/mhd/boozer.py @@ -33,7 +33,6 @@ __all__ = ['Boozer', 'Quasisymmetry'] - class Boozer(Optimizable): """ This class handles the transformation to Boozer coordinates. @@ -178,8 +177,8 @@ def run(self): self.bx.mnmax = wout.mnmax self.bx.xm = wout.xm self.bx.xn = wout.xn - logger.info('mnmax:', wout.mnmax, ' len(xm):', len(wout.xm), ' len(xn):', len(wout.xn)) - logger.info('mnmax_nyq:', wout.mnmax_nyq, ' len(xm_nyq):', len(wout.xm_nyq), ' len(xn_nyq):', len(wout.xn_nyq)) + logger.info(f'mnmax: {wout.mnmax} len(xm): {len(wout.xm)} len(xn): {len(wout.xn)}') + logger.info(f'mnmax_nyq: {wout.mnmax_nyq} len(xm_nyq): {len(wout.xm_nyq)} len(xn_nyq): {len(wout.xn_nyq)}') assert len(wout.xm) == wout.mnmax assert len(wout.xn) == wout.mnmax assert len(self.bx.xm) == self.bx.mnmax