-
Notifications
You must be signed in to change notification settings - Fork 54
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
ag/surface_dofs_fix #361
ag/surface_dofs_fix #361
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #361 +/- ##
==========================================
- Coverage 91.99% 91.64% -0.36%
==========================================
Files 75 75
Lines 13464 13449 -15
==========================================
- Hits 12386 12325 -61
- Misses 1078 1124 +46
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Can a test be added in |
Here's another thought. Instead of having It looks to me like |
This is checked now in simsopt/src/simsopt/geo/surfaceobjectives.py Lines 1086 to 1088 in eb6b27f
The first
I decided against adding another keyword argument for Therefore, when |
In this PR, I propose a fix for an issue that @ejpaul pointed out. Python complains if you try to compute a derivative with BoozerSurfaces when a coil degree of freedom is fixed. We didn't have any unit tests for this, but I have added one now.
I have proposed a not very elegant modification of the
__call__
function of theDerivative
class.The issue is that simsopt currently filters out the partial derivatives of the fixed dofs. When the user requests it to return a
Derivative
object, rather than a numpy array of the derivative, this can cause issues.