Skip to content

Commit

Permalink
Merge pull request hiddenSymmetries#436 from hiddenSymmetries/ml/booz…
Browse files Browse the repository at this point in the history
…er_logging_bug

Fix logging error in boozer.py to address hiddenSymmetries#435
  • Loading branch information
landreman authored Jul 11, 2024
2 parents 8200130 + 5f4509e commit f4b943e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/simsopt/mhd/boozer.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

__all__ = ['Boozer', 'Quasisymmetry']


class Boozer(Optimizable):
"""
This class handles the transformation to Boozer coordinates.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f4b943e

Please sign in to comment.