-
Notifications
You must be signed in to change notification settings - Fork 321
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
raise if given more than one result for the same parameter name #3265
Merged
jenshnielsen
merged 9 commits into
microsoft:master
from
jenshnielsen:ensure_unique_parameter_names
Sep 2, 2021
Merged
raise if given more than one result for the same parameter name #3265
jenshnielsen
merged 9 commits into
microsoft:master
from
jenshnielsen:ensure_unique_parameter_names
Sep 2, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #3265 +/- ##
=======================================
Coverage 66.20% 66.20%
=======================================
Files 220 220
Lines 29246 29250 +4
=======================================
+ Hits 19361 19365 +4
Misses 9885 9885 |
bd152dd
to
6dfa6f8
Compare
@trevormorgan Ping |
astafan8
reviewed
Aug 30, 2021
Co-authored-by: Mikhail Astafev <[email protected]>
@jenshnielsen changes look good to me. |
trevormorgan
approved these changes
Sep 2, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This would have prevented a bug identified in #3186 where multiple values for the same result was passed to add_result.
It turns out that a number of tests relied on being able to pass in multiple parameters with setpoints that had been pre expanded and therefore multiple values for any shared setpoints. Technically this is an api break and should therefor probably be documented as such. I do not expect that many users would pre expand the setpoints so I am not that concerned about it.
This also revealed that one of the tests were buggy since it explicitly passes the same parameters multiple times (due to some code being commented out)
@trevormorgan could you take a look