Skip to content
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

Fixed an interpolation issue where scipy now requires unique x-axis values. #842

Merged
merged 4 commits into from
Oct 25, 2022

Conversation

robfalck
Copy link
Contributor

Summary

Scipy 1.9.3 introduced an exception raised during load_case because time values used to interpolate states and controls contained duplicate values at segment bounds.

This fix runs time values from the solution being interpolated through np.unique to extract the indices of the unique time values, and then applies those to states and controls when performing the interpolation.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

@robfalck robfalck merged commit 53d54bb into OpenMDAO:master Oct 25, 2022
@robfalck robfalck deleted the scipy_interp_fix branch September 1, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scipy 1.9.3 interpolation fails during load_case
2 participants