Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
4
def
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_map
Function · 0.90
test_fold_bag
Function · 0.90
test_distinct_with_key
Function · 0.90
test_frequencies
Function · 0.90
test_aggregation
Function · 0.90
test_non_splittable_reductions
Function · 0.90
test_std
Function · 0.90
test_var
Function · 0.90
test_join
Function · 0.90
test_map_partitions_args_kwargs
Function · 0.90
test_repartition_npartitions
Function · 0.90
test_repartition_partition_size
Function · 0.90
Calls
1
compute
Method · 0.45
Tested by
15
test_bag_map
Function · 0.72
test_fold_bag
Function · 0.72
test_distinct_with_key
Function · 0.72
test_frequencies
Function · 0.72
test_aggregation
Function · 0.72
test_non_splittable_reductions
Function · 0.72
test_std
Function · 0.72
test_var
Function · 0.72
test_join
Function · 0.72
test_map_partitions_args_kwargs
Function · 0.72
test_repartition_npartitions
Function · 0.72
test_repartition_partition_size
Function · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…