MCPcopy
hub / github.com/pydata/xarray / assert_sparse_equal

Function assert_sparse_equal

xarray/tests/test_sparse.py:26–29  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

24
25
26def assert_sparse_equal(a, b):
27 assert isinstance(a, sparse_array_type)
28 assert isinstance(b, sparse_array_type)
29 np.testing.assert_equal(a.todense(), b.todense())
30
31
32def make_ndarray(shape):

Callers 8

test_unary_opMethod · 0.85
test_univariate_ufuncMethod · 0.85
test_bivariate_ufuncMethod · 0.85
test_bivariate_xufuncMethod · 0.85
test_pickleMethod · 0.85
test_concatMethod · 0.85

Calls 1

todenseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…