MCPcopy Create free account
hub / github.com/dask/dask / test_visualize_order

Function test_visualize_order

dask/tests/test_base.py:604–612  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

602 bool(sys.flags.optimize), reason="graphviz exception with Python -OO flag"
603)
604def test_visualize_order():
605 pytest.importorskip("graphviz")
606 pytest.importorskip("matplotlib.pyplot")
607 x = da.arange(5, chunks=2)
608 with tmpfile(extension="dot") as fn:
609 x.visualize(color="order", filename=fn, cmap="RdBu")
610 with open(fn) as f:
611 text = f.read()
612 assert 'color="#' in text
613
614
615def inc_to_dec(dsk, keys):

Callers

nothing calls this directly

Calls 3

tmpfileFunction · 0.90
arangeMethod · 0.45
visualizeMethod · 0.45

Tested by

no test coverage detected