Skip to content

Commit 9074c04

Browse files
committed
Fix against xarray upstream due to pydata/xarray#4940 #477
1 parent a796df0 commit 9074c04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sgkit/tests/test_hwe.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ def test_hwep_dataset__precomputed_counts(ds_neq: Dataset) -> None:
139139
cts = [1, 0, 2] # arg order: hets, hom1, hom2
140140
gtc = xr.concat([(ac == ct).sum(dim="samples") for ct in cts], dim="counts").T
141141
ds = ds.assign(**{"variant_genotype_counts": gtc})
142-
p = hwep_test(ds, genotype_counts="variant_genotype_counts", merge=False)
142+
p = hwep_test(ds, genotype_counts="variant_genotype_counts", merge=False)[
143+
"variant_hwe_p_value"
144+
].values
143145
assert np.all(p < 1e-8)
144146

145147

0 commit comments

Comments
 (0)