Skip to content

Commit

Permalink
fix bug in QuasisymmetryBoozer.dim_f
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-dudt committed Oct 1, 2024
1 parent 056fcc4 commit 7b01b7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desc/objectives/_omnigenity.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def build(self, use_jit=True, verbose=1):
M_booz=M_booz,
N_booz=N_booz,
)
matrix, modes, idx = ptolemy_linear_transform(
matrix, _, idx = ptolemy_linear_transform(

Check warning on line 166 in desc/objectives/_omnigenity.py

View check run for this annotation

Codecov / codecov/patch

desc/objectives/_omnigenity.py#L166

Added line #L166 was not covered by tests
transforms["B"].basis.modes,
helicity=self.helicity,
NFP=transforms["B"].basis.NFP,
Expand All @@ -180,7 +180,7 @@ def build(self, use_jit=True, verbose=1):
if verbose > 1:
timer.disp("Precomputing transforms")

self._dim_f = idx.size
self._dim_f = idx.size * grid.num_rho

Check warning on line 183 in desc/objectives/_omnigenity.py

View check run for this annotation

Codecov / codecov/patch

desc/objectives/_omnigenity.py#L183

Added line #L183 was not covered by tests

if self._normalize:
scales = compute_scaling_factors(eq)
Expand Down

0 comments on commit 7b01b7a

Please sign in to comment.