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

Function test_InMemoryArrayDataset_chunks

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

Source from the content-addressed store, hash-verified

1664
1665
1666def test_InMemoryArrayDataset_chunks(vfile):
1667 with vfile.stage_version("0") as sv:
1668 data_group = sv.create_group("data")
1669 data_group.create_dataset(
1670 "g/bar",
1671 data=np.arange(4),
1672 chunks=(100,),
1673 compression="gzip",
1674 compression_opts=3,
1675 )
1676 assert isinstance(data_group["g/bar"].dataset, InMemoryArrayDataset)
1677 assert data_group["g/bar"].chunks == (100,)
1678 assert data_group["g/bar"].compression == "gzip"
1679 assert data_group["g/bar"].compression_opts == 3
1680
1681
1682@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