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

abs2prom not recorded to driver_metadata table since it is already recorded to metadata table #1277

Merged
merged 4 commits into from
Mar 31, 2020

Conversation

hschilling
Copy link
Member

Summary

abs2prom not recorded to driver_metadata table since it is already recorded to metadata table

Related Issues

Backwards incompatibilities

None

New Dependencies

None

@swryan
Copy link
Contributor

swryan commented Mar 27, 2020

It seems like the n2 viewer does not need abs2prom at all since removing it from viewer_data does not break test_viewmodeldata.py:TestViewModelData.test_n2_from_sqlite. Is that right?

If so then it seems like we should just not add it to data_dict in _get_viewer_data at all rather than pop it later...

@swryan
Copy link
Contributor

swryan commented Mar 27, 2020

from a quick look at n2.html, it looks like abs2prom is optional:

        this.abs2prom = modelJSON.abs2prom; // May be undefined.
            .on("mouseover", function(d) {
                if (self.model.abs2prom != undefined) {
                    if (d.isParam()) {
                        return self.dom.toolTip.text(
                                self.model.abs2prom.input[d.absPathName])
                            .style("visibility", "visible");
                    }
                    if (d.isUnknown()) {
                        return self.dom.toolTip.text(
                                self.model.abs2prom.output[d.absPathName])
                            .style("visibility", "visible");
                    }
                }
            })

so I am wondering what the effect is of not having abs2prom in the dict when viewing the n2 from a recording...

@swryan swryan merged commit 0533ba4 into OpenMDAO:master Mar 31, 2020
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.

abs2prom is recorded twice in the case recorder file
3 participants