Skip to content

Commit dcfc110

Browse files
committed
Improve test_count_variant_genotypes__biallelic
1 parent 54c8abe commit dcfc110

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sgkit/tests/test_aggregation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,11 @@ def count_biallelic_genotypes(calls, ploidy):
400400
calls = ds.call_genotype.values
401401
expect = count_biallelic_genotypes(calls, ploidy)
402402
if chunked:
403-
# chunk each dim
403+
# chunk each dim except ploidy
404404
chunks = (
405405
(n_variant // 2, n_variant - n_variant // 2),
406406
(n_sample // 2, n_sample - n_sample // 2),
407-
(ploidy // 2, ploidy - ploidy // 2),
407+
-1,
408408
)
409409
ds["call_genotype"] = ds["call_genotype"].chunk(chunks)
410410
actual = count_variant_genotypes(ds)["variant_genotype_count"].data

0 commit comments

Comments
 (0)