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

Feature/visualizer refactor #995

Merged
merged 10 commits into from
Apr 15, 2024
Merged

Feature/visualizer refactor #995

merged 10 commits into from
Apr 15, 2024

Conversation

Jammy2211
Copy link
Collaborator

Small updates to this PR (#993 so other projects can use API as intended.

@Jammy2211 Jammy2211 requested a review from rhayes777 April 9, 2024 14:12
Comment on lines +15 to +38
# 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
Copy link
Owner

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
Copy link
Owner

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?

Copy link
Collaborator Author

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.

@Jammy2211 Jammy2211 merged commit 6313bd1 into main Apr 15, 2024
4 checks passed
@Jammy2211 Jammy2211 deleted the feature/visualizer_refactor branch April 18, 2024 12:44
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.

None yet

2 participants