Skip to content

Commit f4b943e

Browse files
authored
Merge pull request #436 from hiddenSymmetries/ml/boozer_logging_bug
Fix logging error in boozer.py to address #435
2 parents 8200130 + 5f4509e commit f4b943e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/simsopt/mhd/boozer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

3434
__all__ = ['Boozer', 'Quasisymmetry']
3535

36-
3736
class Boozer(Optimizable):
3837
"""
3938
This class handles the transformation to Boozer coordinates.
@@ -178,8 +177,8 @@ def run(self):
178177
self.bx.mnmax = wout.mnmax
179178
self.bx.xm = wout.xm
180179
self.bx.xn = wout.xn
181-
logger.info('mnmax:', wout.mnmax, ' len(xm):', len(wout.xm), ' len(xn):', len(wout.xn))
182-
logger.info('mnmax_nyq:', wout.mnmax_nyq, ' len(xm_nyq):', len(wout.xm_nyq), ' len(xn_nyq):', len(wout.xn_nyq))
180+
logger.info(f'mnmax: {wout.mnmax} len(xm): {len(wout.xm)} len(xn): {len(wout.xn)}')
181+
logger.info(f'mnmax_nyq: {wout.mnmax_nyq} len(xm_nyq): {len(wout.xm_nyq)} len(xn_nyq): {len(wout.xn_nyq)}')
183182
assert len(wout.xm) == wout.mnmax
184183
assert len(wout.xn) == wout.mnmax
185184
assert len(self.bx.xm) == self.bx.mnmax

0 commit comments

Comments
 (0)