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

copy data in case recorder output #1850

Merged
merged 1 commit into from
Jan 26, 2021
Merged

Conversation

fzahle
Copy link
Contributor

@fzahle fzahle commented Jan 25, 2021

Summary

When getting constraints and design variables from a recorded case (e.g. openmdao.recorders.case.Case.get_constraints), these are by default returned scaled. When accessing these outputs subsequently, they remain scaled. This PR simply ensures that a copy of the output is created before returning it.

Related Issues

None

Backwards incompatibilities

It changes the behaviour of the case recorder as described above, but I would guess this is non-intentional behaviour.

New Dependencies

None

@swryan swryan merged commit 8602a35 into OpenMDAO:master Jan 26, 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.

4 participants