-
Notifications
You must be signed in to change notification settings - Fork 16
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
🎨 Control coil enforcement, constraint stabilisation and general cleanup #3518
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #3518 +/- ##
===========================================
+ Coverage 76.38% 76.40% +0.01%
===========================================
Files 230 230
Lines 26677 26700 +23
===========================================
+ Hits 20378 20399 +21
- Misses 6299 6301 +2 ☔ View full report in Codecov by Sentry. |
|
11de02c
to
e1bafb3
Compare
dffe8de
to
a8e1f36
Compare
a8e1f36
to
c04812b
Compare
c04812b
to
faaddde
Compare
faaddde
to
a491317
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.
I've gone through it quite carefully.
Two things:
-
All the spherical harmioncs stuff is using sig_fig_round, where the constraints use np.round. They obviously do different things, but I find the inconsistency slightly worrying.
-
The 15 sig figs used in the SH stuff should be a param.
bluemira/equilibria/optimisation/harmonics/harmonics_approx_functions.py
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
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.
Been through the changes, all looks sensible and ready to merge.
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.
Okay lgtm!
Perpahs in some doc. it could be stated that rounding constraint return values is generally recommended for improving numeric stability.
As a recommendation for constraint implementers.
As we talked about I think its very constraint specific for those constraints that are numerically unstable. As you said we could do something as part of a wider refactor of the eq opt stuff |
…ult), also remove clipping, not nessisary since fixes in Fusion-Power-Plant-Framework#3518
…ult), also remove clipping, not nessisary since fixes in Fusion-Power-Plant-Framework#3518
* Add choose psi norm value option to SH constraint (LCFS is still default), also remove clipping, not nessisary since fixes in #3518 * remove unessisary * Update bluemira/equilibria/optimisation/harmonics/harmonics_approx_functions.py Co-authored-by: je-cook <81617086+je-cook@users.noreply.github.com> --------- Co-authored-by: je-cook <81617086+je-cook@users.noreply.github.com>
Description
This was done while doing some work towards passive coils
Interface Changes
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