-
-
Notifications
You must be signed in to change notification settings - Fork 728
bug: fix sensitivity calculation for discrete time sum #5008
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5008 +/- ##
========================================
Coverage 98.57% 98.57%
========================================
Files 304 304
Lines 23656 23661 +5
========================================
+ Hits 23320 23325 +5
Misses 336 336 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
MarcBerliner
left a comment
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.
Thanks Martin! Looks good, just some minor things. For consistency, can you add the name argument/property to the other processed variable classes?
Question (non-blocking):
- If hermite interpolation is available, can we treat
dvar_dy_eval,dy_dp, anddvar_dp_evalas distinct process variables, hermite interpolate them ontoself.time_integral.discrete_times, and then compute the discrete sum?
Yea, that would be nicer, we'd need their time derivatives though I think? I think these can be extracted during integration using |
Co-authored-by: Marc Berliner <[email protected]>
BradyPlanden
left a comment
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 @martinjrobins - thanks!
Co-authored-by: Brady Planden <[email protected]>
MarcBerliner
left a comment
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.
Thanks!
Description
Fixes #5007
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #)
Important checks:
Please confirm the following before marking the PR as ready for review:
nox -s pre-commitnox -s testsnox -s doctests