Add time interpolation to mpc data#3559
Conversation
Robbybp
left a comment
There was a problem hiding this comment.
Thanks for the addition. This is definitely functionality we were missing. I think this would be better as it's own interpolate, or get_interpolated_data, method. Would that work for your application?
There is also the question of whether to support some form of interpolation in DynamicModelInterface. (E.g., in get_data_at_time, load_data, or dedicated methods for interpolation.) I'm fine with (and think I prefer) punting for now if you don't need this for your application.
Robbybp
left a comment
There was a problem hiding this comment.
Looks good once tests pass, thanks!
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3559 +/- ##
==========================================
- Coverage 88.75% 88.67% -0.08%
==========================================
Files 890 891 +1
Lines 102246 102616 +370
==========================================
+ Hits 90749 90998 +249
- Misses 11497 11618 +121
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: Bethany Nicholson <[email protected]>
Co-authored-by: Bethany Nicholson <[email protected]>
|
@eslickj - Please run |
Fixes None
Adds option to linearly interpolate from MPC TimeSeriesData.
Summary/Motivation:
Sometimes you have time series data that doesn't line up perfectly with model time indexes. @blnicho and @jsiirola, this is part of the recent MHE work.
Changes proposed in this PR:
Legal Acknowledgement
By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution: