-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
BUG: Invalid Arguments on Two Dimensional Discretize (HOTFIX). #521
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #521 +/- ##
==========================================
+ Coverage 70.92% 71.15% +0.22%
==========================================
Files 55 55
Lines 9262 9259 -3
==========================================
+ Hits 6569 6588 +19
+ Misses 2693 2671 -22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Very well solved, thank you.
223d598
Pull request type
Checklist
black rocketpy/ tests/
) has passed locallypytest --runslow
) have passed locallyCHANGELOG.md
has been updated (if relevant)Current behavior
The PR #451 introduced a standard for the
get_value
arguments regarding multidimensional Functions that were not updated everywhere in code: the methodset_discrete
for 2D Functions breaks. One may verify it by running onmaster
:New behavior
During debug there were two root causes for the error that were fixed:
get_value
call still used one argument for two dimensional domains: a simple argument separation was enough for a fix.__check_user_inputs
method did not account for the possibility of aFunction
being a source.Basic tests were implemented. Since this is a hotfix, I avoided changing much, but a full fix involves exploring issue #481 and improving the sets for interpolation and extrapolation that are quite circular in current code.
More tests and better docs for discretize are incoming on #519 .
Breaking change
Other Information
The original motivation that lead to this bug discovery was from codecov, who told be in PR #519 that the tests did not cover 2D
Function
.