MCPcopy Create free account
hub / github.com/dask/dask / test_h5py_tokenize

Function test_h5py_tokenize

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

Source from the content-addressed store, hash-verified

3599
3600
3601def test_h5py_tokenize():
3602 h5py = pytest.importorskip("h5py")
3603 with tmpfile("hdf5") as fn1:
3604 with tmpfile("hdf5") as fn2:
3605 f = h5py.File(fn1, mode="a")
3606 g = h5py.File(fn2, mode="a")
3607
3608 f["x"] = np.arange(10).astype(float)
3609 g["x"] = np.ones(10).astype(float)
3610
3611 x1 = f["x"]
3612 x2 = g["x"]
3613
3614 assert tokenize(x1) != tokenize(x2)
3615
3616
3617def 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