-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature/visualizer refactor #995
Conversation
# def test_visualize(): | ||
# analysis = Analysis() | ||
# | ||
# gaussian = af.Model(af.Gaussian) | ||
# | ||
# analysis_factor = g.AnalysisFactor( | ||
# prior_model=gaussian, | ||
# analysis=analysis | ||
# ) | ||
# | ||
# factor_graph = g.FactorGraphModel( | ||
# analysis_factor | ||
# ) | ||
# | ||
# model = factor_graph.global_prior_model | ||
# instance = model.instance_from_prior_medians() | ||
# | ||
# factor_graph.visualize( | ||
# af.DirectoryPaths(), | ||
# instance, | ||
# False | ||
# ) | ||
# | ||
# assert analysis.did_call_visualise is True |
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.
?
# ) | ||
# | ||
# assert analysis_1.did_visualise_combined is True | ||
# assert analysis_2.did_visualise_combined is False |
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.
Why did the tests need to be commented?
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.
The tests are commented because the refactor meant the way the test was designed to make it pass was not working (and I could not figure out how to refactor it).
If you could try get them working again I will then merge.
Small updates to this PR (#993 so other projects can use API as intended.