Closed andrewgiuliani closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 91.99%. Comparing base (
6426096
) to head (11f176b
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The user has the option to optimize coils using the BoozerLS algorithm while fixing the constant
G
to its theoretical value in vacuum field, i.e., providingG=None
to boozer_surface.run_code(). When computing the gradient of an objective function that depends on such a BoozerLS surface (withG=None
), the gradient formulas assume that coil currents are fixed. In order to avoid confusion, I have added an assert to prevent the algorithm from proceeding if the currents are unfixed, as the computed gradient would be incorrect.