MCPcopy Create free account
hub / github.com/daft-dev/daft / test_logo

Function test_logo

test/test_examples.py:343–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

341
342@image_comparison(baseline_images=["logo"], extensions=["png"])
343def test_logo():
344 pgm = daft.PGM()
345 pgm.add_node("d", r"$D$", 0.5, 0.5)
346 pgm.add_node("a", r"$a$", 1.5, 0.5, observed=True)
347 pgm.add_node("f", r"$f$", 2.5, 0.5)
348 pgm.add_node("t", r"$t$", 3.5, 0.5)
349 pgm.add_edge("d", "a")
350 pgm.add_edge("a", "f")
351 pgm.add_edge("f", "t")
352 pgm.render()
353
354
355@image_comparison(baseline_images=["mrf"], extensions=["png"])

Callers

nothing calls this directly

Calls 3

add_nodeMethod · 0.95
add_edgeMethod · 0.95
renderMethod · 0.95

Tested by

no test coverage detected