MCPcopy Create free account
hub / github.com/deshaw/versioned-hdf5 / test_InMemoryArrayDataset_chunks

Function test_InMemoryArrayDataset_chunks

tests/test_api.py:1938–1951  ·  view source on GitHub ↗
(vfile)

Source from the content-addressed store, hash-verified

1936
1937
1938def test_InMemoryArrayDataset_chunks(vfile):
1939 with vfile.stage_version("0") as sv:
1940 data_group = sv.create_group("data")
1941 data_group.create_dataset(
1942 "g/bar",
1943 data=np.arange(4),
1944 chunks=(100,),
1945 compression="gzip",
1946 compression_opts=3,
1947 )
1948 assert isinstance(data_group["g/bar"].dataset, InMemoryArrayDataset)
1949 assert data_group["g/bar"].chunks == (100,)
1950 assert data_group["g/bar"].compression == "gzip"
1951 assert data_group["g/bar"].compression_opts == 3
1952
1953
1954@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

stage_versionMethod · 0.80
create_groupMethod · 0.80
create_datasetMethod · 0.80

Tested by

no test coverage detected