Skip to content

Commit 6160f06

Browse files
eric-czechmergify[bot]
authored andcommitted
Add test
1 parent 647c9b7 commit 6160f06

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sgkit/tests/test_testing.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import xarray as xr
2+
3+
from sgkit.testing import simulate_genotype_call_dataset
4+
5+
6+
def test_simulate_genotype_call_dataset__zarr(tmp_path):
7+
path = str(tmp_path / "ds.zarr")
8+
ds = simulate_genotype_call_dataset(n_variant=10, n_sample=10)
9+
ds.to_zarr(path)
10+
xr.testing.assert_equal(ds, xr.open_zarr(path, concat_characters=False)) # type: ignore[no-untyped-call]

0 commit comments

Comments
 (0)