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

getValues with allowSens=True does not work without specifying names. #259

Open
kanekosh opened this issue May 18, 2021 · 1 comment
Open

Comments

@kanekosh
Copy link
Contributor

Description

History.getValues() does not work when we call it with allowSens=True and default values for the other inputs.
To make it work, users have to specify appropriate callCounters and names.
The docstrings say it is up to the user to ensure that the callCounters specified contain the information requested, so this behavior is expected, but not very user-friendly.

Steps to reproduce issue

  1. Run one of the test problems.
  2. Read the history file and call hist.getValues(allowSense=True).

Current behavior

It tries to parse obj/con/funcs from the sensitivity evaluation, even though we don't have that info. Then it fails with KeyError.

Expected behavior

It should raise a pyOptSparse Warning or Error when allowSens=True and the (default or user-specified) callCounters and names are not valid.
It'd be better if we can overwrite callCounters and names internally.

@ewu63
Copy link
Collaborator

ewu63 commented May 18, 2021

Related to #250.

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

No branches or pull requests

2 participants