dymos icon indicating copy to clipboard operation
dymos copied to clipboard

Update assert_timeseries_near_equal to work with more general cases.

Open robfalck opened this issue 3 years ago • 0 comments

Issue Type

  • [x] Bug
  • [ ] Enhancement
  • [ ] Docs
  • [ ] Miscellaneous

Description

The assert_timeseries_near_equal function in testing utils originally was designed to compare implicit solutions and their explicitly simulated counterparts. It therefore tested that the start and end times of each phase matched to very tight tolerance.

Some users have expressed interest in this capability for more general testing, so the method should be updated such that the time bounds of the two cases match within some desired tolerance. If the time bounds are not the same, it should only check those portions of the trajectory in which the two timeseries overlap.

Example

None

Environment

Dymos 1.5.0

robfalck avatar May 06 '22 18:05 robfalck