-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add aviary metadata to the dashboard and add ability to copy cell values #131
Add aviary metadata to the dashboard and add ability to copy cell values #131
Conversation
… so user can copy the value and use in their code
…the abs name section, does a better job of formatting the aviary metadata in the hover over window, and adds a copy button to each cell to make it easy for the end user to copy that cell value
…d styling for the copy button
… it can use the openmdao utils version if available, otherwise, use the private function in n2_viewer
…t_nans_in_json from older version of OpenMDAO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be possible to have the "copy" button not not grab the quotation marks?
If you copy a name and then paste it into the search/filter at the top, it will give you no results unless you delete the quotes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love this! I played around a bit, I like that the arrays are immediately ready for numpy after copying them. Thanks Herb!
…n metadata tooltip was wrong. Strings were being rendered and copied with quotes around them but now those removed
Summary
This PR adds showing Aviary variables metadata as a hover over popup in the Aviary Variables Tab of the dashboard.
It also adds Copy buttons to cells so the user can easily copy the values and paste them into Python code.
Finally, it adds a checkbox that lets the user only show Aviary Variables in the table. ( Variables whose promoted names begin with "mission:" or "aircraft".)
The easiest way to see and test this is:
Then look at the Results-Aviary Variables Tab.
Test:
Related Issues
Backwards incompatibilities
None
New Dependencies
None