Commit 0d1a901
khushthecoder
fix: guard against empty allele count array in test_snp_allele_counts
When a randomly selected region has no SNP sites after applying the
site mask, the allele count array is empty and calling .max() on it
raises ValueError. Skip the max assertion for zero-size arrays.
This fixes a pre-existing flaky test failure:
ValueError: zero-size array to reduction operation maximum which has no identity1 parent c801901 commit 0d1a901
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1134 | 1134 | | |
1135 | 1135 | | |
1136 | 1136 | | |
1137 | | - | |
| 1137 | + | |
| 1138 | + | |
1138 | 1139 | | |
1139 | 1140 | | |
1140 | 1141 | | |
| |||
0 commit comments