-
Notifications
You must be signed in to change notification settings - Fork 19
Toroidal harmonics single coil and full coilset #3789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toroidal harmonics single coil and full coilset #3789
Conversation
* add toroidal harmonics approx functions and examples * working on pr comments * changes based on pr review comments - added tests for legendre functions - improved explanations * adding image referenced in singe_wire notebook * changes based on review comments * Update bluemira/equilibria/optimisation/harmonics/toroidal_harmonics_approx_functions.py Co-authored-by: geograham <g.a.graham09@gmail.com> * Update bluemira/equilibria/optimisation/harmonics/toroidal_harmonics_approx_functions.py Co-authored-by: geograham <g.a.graham09@gmail.com> --------- Co-authored-by: geograham <g.a.graham09@gmail.com>
- added tests for legendre functions - improved explanations
…approx_functions.py Co-authored-by: geograham <g.a.graham09@gmail.com>
…approx_functions.py Co-authored-by: geograham <g.a.graham09@gmail.com>
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (43.90%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## feature/toroidal-harmonics #3789 +/- ##
==============================================================
- Coverage 76.75% 76.30% -0.45%
==============================================================
Files 230 231 +1
Lines 27238 27319 +81
==============================================================
- Hits 20906 20847 -59
- Misses 6332 6472 +140 ☔ View full report in Codecov by Sentry. |
811dc12
to
599d9ed
Compare
|
fyi the docs failure is because some examples have been removed/renamed/added and need to be changed in documenation/examples.rst. |
958b5e3
to
af6e058
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, some tests and some comments to add. Otherwise, happy with the level of testing we have done in person.
bluemira/equilibria/optimisation/harmonics/harmonics_approx_functions.py
Show resolved
Hide resolved
return legQ | ||
|
||
|
||
def coil_toroidal_harmonic_amplitude_matrix( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to have some tests that make sure that the coil_toroidal_harmonic_amplitude_matrix and toroidal_harmonic_approximate_psi return the correct shape of matrix given eg. different numbers of control coils or max degrees.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also have a couple of regression tests for coil_toroidal_harmonic_amplitude_matrix and toroidal_harmonic_approximate_psi.
examples/equilibria/toroidal_harmonics_full_coilset_approximation_bluemira_comparison.ex.py
Show resolved
Hide resolved
examples/equilibria/toroidal_harmonics_full_coilset_approximation_bluemira_comparison.ex.py
Show resolved
Hide resolved
examples/equilibria/toroidal_harmonics_full_coilset_approximation_bluemira_comparison.ex.py
Show resolved
Hide resolved
…, add sentence explaining fit metric, note about slightly higher fit metric tolerance
|
af6e058
to
f3df572
Compare
Closing this PR as there have been a lot of changes on a newer branch which implements toroidal harmonic constraints. The comments left here are addressed in the new PR #3867. |
Linked Issues
Closes #3743
Closes #3781
Closes #3340
Description
Checklist
I confirm that I have completed the following checks:
pytest tests --reactor
pre-commit run --from-ref develop --to-ref HEAD
sphinx-build -W documentation/source documentation/build