-
Notifications
You must be signed in to change notification settings - Fork 55
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
Fixing bug in local DVs #138
Conversation
@@ -229,12 +229,6 @@ def __init__(self, name, lower, upper, scale, axis, coefListIn, mask, config, se | |||
super().__init__(name=name, value=np.zeros(nVal, "D"), nVal=nVal, lower=None, upper=None, scale=scale) | |||
|
|||
self.config = config | |||
if lower is not None: |
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.
why are you removing these lines?
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.
That portion is duplicated in the class it inherits from, geoDV
, so it shouldn't be necessary here.
Codecov Report
@@ Coverage Diff @@
## main #138 +/- ##
===========================================
- Coverage 62.62% 51.70% -10.92%
===========================================
Files 45 45
Lines 11219 11213 -6
===========================================
- Hits 7026 5798 -1228
- Misses 4193 5415 +1222
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Purpose
The changes in #130 to the DV classes introduced an issue that caused my cases and the tutorial wing and airfoil to not run, they exited immediately with SNOPT saying the problem was infeasible. I believe the issue is typos in
geoDVLocal
andgeoDVSpanwiseLocal
, which this should fix.The bigger question is why the MACH and pyGeo tests still passed with this issue and how tests could catch it.
Expected time until merged
A day or two, there are only a few changed lines but someone who has cases that use different types of DVs might want to test with this to make sure everything is working.
Type of change
Testing
Without this change, running the tutorial scripts in Docker (I tried
u20-gcc-ompi-latest
) will result in an immediate exit with no apparent errors and a10 14
code from SNOPT.Checklist
flake8
andblack
to make sure the code adheres to PEP-8 and is consistently formatted