-
Notifications
You must be signed in to change notification settings - Fork 109
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
Fix test for earlier SNOPT versions #370
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #370 +/- ##
==========================================
- Coverage 73.36% 73.36% -0.01%
==========================================
Files 22 22
Lines 3312 3315 +3
==========================================
+ Hits 2430 2432 +2
- Misses 882 883 +1 ☔ View full report in Codecov by Sentry. |
Can someone with access test whether the offending test passes with SNOPT 7.7.5? If so then I'd propose bumping the SNOPT version rather than trying to patch very outdated SNOPT versions within pySNOPT. CC @eirikurj @eytanadler |
For completeness, I tried 7.7.5 and tests still fail. Is that however not expected since |
Hm I had thought that maybe 7.7.5 fixed the bug, but perhaps not. A few options:
I am in favour of the first option since with the changes in #364, buggy SNOPT optimizations essentially lose the optimal objective value, while previously you can at least get the last queried value via |
Right, I forgot to un-scale the obj values. Thanks, LGTM |
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.
LGTM
Yeah, tests have been failing for a while. @sseraj do you have time to review this or anyone from @mdolab/pyoptsparse_maintainers? If not, I will merge at end of week. |
Purpose
Closes #369.
Expected time until merged
ASAP.
Type of change
Testing
Checklist
flake8
andblack
to make sure the Python code adheres to PEP-8 and is consistently formattedfprettify
or C/C++ code withclang-format
as applicable