Skip to content

Commit 65f9927

Browse files
committed
Fix Cubed tests by chunking appropriately
1 parent 34ba02c commit 65f9927

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sgkit/tests/test_pca.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def simulate_dataset(
3636
n_variant: int = 100,
3737
n_sample: int = 50,
3838
n_cohort: Optional[int] = None,
39-
chunks: Any = (None, None),
39+
chunks: Any = (-1, -1),
4040
) -> Dataset:
4141
"""Simulate dataset with optional population structure"""
4242
ds = simulate_genotype_call_dataset(n_variant, n_sample, seed=0)
@@ -48,6 +48,7 @@ def simulate_dataset(
4848
ac, dims=("variants", "samples")
4949
)
5050
else:
51+
ds["call_genotype_mask"] = ds["call_genotype_mask"].chunk(chunks + (1,))
5152
ds = count_call_alternate_alleles(ds)
5253
ds["call_alternate_allele_count"] = ds["call_alternate_allele_count"].chunk(chunks)
5354
return ds

0 commit comments

Comments
 (0)