MCPcopy
hub / github.com/dask/dask / test_h5py_tokenize

Function test_h5py_tokenize

dask/array/tests/test_array_core.py:3608–3621  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3606
3607
3608def test_h5py_tokenize():
3609 h5py = pytest.importorskip("h5py")
3610 with tmpfile("hdf5") as fn1:
3611 with tmpfile("hdf5") as fn2:
3612 f = h5py.File(fn1, mode="a")
3613 g = h5py.File(fn2, mode="a")
3614
3615 f["x"] = np.arange(10).astype(float)
3616 g["x"] = np.ones(10).astype(float)
3617
3618 x1 = f["x"]
3619 x2 = g["x"]
3620
3621 assert tokenize(x1) != tokenize(x2)
3622
3623
3624def test_map_blocks_with_changed_dimension():

Callers

nothing calls this directly

Calls 5

tmpfileFunction · 0.90
tokenizeFunction · 0.50
astypeMethod · 0.45
arangeMethod · 0.45
onesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…