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

Fix NaNs that may still show up in the N2 diagram #1945

Merged
merged 4 commits into from
Mar 9, 2021

Conversation

tadkollar
Copy link
Member

Summary

Even though n2_viewer.py checks for and converts NaNs to strings so JSON can handle them, it's possible that some are slipping through if they're stored as some type we're not aware of. This adds a check to the JavaScript side so that if some do slip through, they're converted to strings before the model structure is parsed into JSON.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

@swryan swryan merged commit a615d40 into OpenMDAO:master Mar 9, 2021
@tadkollar tadkollar deleted the nan1940 branch March 10, 2021 19:38
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.

N2 won't display if model values contain a NAN
3 participants