MCPcopy
hub / github.com/dask/dask / assert_eq

Function assert_eq

dask/bag/utils.py:4–10  ·  view source on GitHub ↗
(a, b, scheduler="sync")

Source from the content-addressed store, hash-verified

2
3
4def assert_eq(a, b, scheduler="sync"):
5 if hasattr(a, "compute"):
6 a = a.compute(scheduler=scheduler)
7 if hasattr(b, "compute"):
8 b = b.compute(scheduler=scheduler)
9
10 assert a == b

Callers 15

test_bag_mapFunction · 0.90
test_fold_bagFunction · 0.90
test_distinct_with_keyFunction · 0.90
test_frequenciesFunction · 0.90
test_aggregationFunction · 0.90
test_stdFunction · 0.90
test_varFunction · 0.90
test_joinFunction · 0.90

Calls 1

computeMethod · 0.45

Tested by 15

test_bag_mapFunction · 0.72
test_fold_bagFunction · 0.72
test_distinct_with_keyFunction · 0.72
test_frequenciesFunction · 0.72
test_aggregationFunction · 0.72
test_stdFunction · 0.72
test_varFunction · 0.72
test_joinFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…