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

Function test_fixed

test/test_examples.py:195–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193
194@image_comparison(baseline_images=["fixed"], extensions=["png"])
195def test_fixed():
196 pgm = daft.PGM(aspect=1.5, node_unit=1.75)
197 pgm.add_node("unobs", r"Unobserved!", 1, 4)
198 pgm.add_node("obs", r"Observed!", 1, 3, observed=True)
199 pgm.add_node("alt", r"Alternate!", 1, 2, alternate=True)
200 pgm.add_node(
201 "fixed", r"Fixed!", 1, 1, fixed=True, aspect=1.0, offset=[0, 5]
202 )
203 pgm.render()
204
205
206@image_comparison(baseline_images=["gaia"], extensions=["png"])

Callers

nothing calls this directly

Calls 2

add_nodeMethod · 0.95
renderMethod · 0.95

Tested by

no test coverage detected