MCPcopy
hub / github.com/dask/dask / test_tokenize_numpy_matrix

Function test_tokenize_numpy_matrix

dask/tests/test_tokenize.py:1048–1055  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1046@pytest.mark.skipif("not np")
1047@pytest.mark.filterwarnings("ignore:the matrix:PendingDeprecationWarning")
1048def test_tokenize_numpy_matrix():
1049 rng = np.random.RandomState(1234)
1050 a = np.asmatrix(rng.rand(100))
1051 b = a.copy()
1052 assert check_tokenize(a) == check_tokenize(b)
1053
1054 b[:10] = 1
1055 assert check_tokenize(a) != check_tokenize(b)
1056
1057
1058@pytest.mark.skipif("not sp")

Callers

nothing calls this directly

Calls 3

check_tokenizeFunction · 0.85
RandomStateMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…