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

Update pyOptSparseDriver to handle an API change in pyOptSparse in version 2.5.1 #2051

Merged
merged 1 commit into from
May 10, 2021

Conversation

hschilling
Copy link
Member

Summary

There have been two changes to the pyOptSparse API recently.

  • removed support for the "openmdao style" sensitivity dictionary, which is a tuple. Now the only supported way is to use a nested dict
  • renamed the functions finalizeDesignVariables() and finalizeConstraints() and made them private (prepending with underscore). The preferred way now is to call finalize()

The first one doesn't affect OpenMDAO, as the code only used dicts, and not tuples, so no changes were needed.

The second one, which occurred in 2.5.1, requires detecting the version of pyOptSparse and calling the appropriate API call of pyOptSparse

Related Issues

Backwards incompatibilities

None

New Dependencies

None

@JustinSGray
Copy link
Member

@nwu63 just FYI!

@ewu63
Copy link
Contributor

ewu63 commented May 7, 2021

Thanks for the work :)

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 88.716% when pulling d10c49d on hschilling:I1990-update-pyoptsparse-wrapper into 02d084e on OpenMDAO:master.

@swryan swryan merged commit 694d9ca into OpenMDAO:master May 10, 2021
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.

Update pyOptSparse wrapper for latest version
6 participants