Commit 4165560
committed
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 6813db9 commit 4165560
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