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

Provide decorators for skipping code if an optimizer is not available #224

Open
ewu63 opened this issue Apr 1, 2021 · 3 comments
Open
Labels
enhancement New feature or request

Comments

@ewu63
Copy link
Collaborator

ewu63 commented Apr 1, 2021

Description

Dymos recently added a decorator in OpenMDAO/dymos#570, which may be something we want to implement in pyOptSparse natively also. This could be useful for:

  • skipTest in pyOptSparse tests
  • test scripts in other repos (e.g. MACH-Aero, pygeo)

May be related to #187.

@ewu63 ewu63 added the enhancement New feature or request label Apr 1, 2021
@robfalck
Copy link
Contributor

robfalck commented Apr 1, 2021

Feel free to take as much of our implementation as you want.

@marcomangano
Copy link
Contributor

Has this been addressed to the extent we wanted?

@ewu63
Copy link
Collaborator Author

ewu63 commented Mar 7, 2022

Not quite, but it's close. Right now we can check the availability of top-level packages with the decorator in baseclasses, but not submodules, e.g. pySNOPT. The intent here is to check specifically for the optimizers, which in most cases involves checking the compiled library, e.g. snopt.so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants