Skip to content

Commit

Permalink
Fix Cubed tests by chunking appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Feb 10, 2025
1 parent 34ba02c commit 65f9927
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sgkit/tests/test_pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def simulate_dataset(
n_variant: int = 100,
n_sample: int = 50,
n_cohort: Optional[int] = None,
chunks: Any = (None, None),
chunks: Any = (-1, -1),
) -> Dataset:
"""Simulate dataset with optional population structure"""
ds = simulate_genotype_call_dataset(n_variant, n_sample, seed=0)
Expand All @@ -48,6 +48,7 @@ def simulate_dataset(
ac, dims=("variants", "samples")
)
else:
ds["call_genotype_mask"] = ds["call_genotype_mask"].chunk(chunks + (1,))
ds = count_call_alternate_alleles(ds)
ds["call_alternate_allele_count"] = ds["call_alternate_allele_count"].chunk(chunks)
return ds
Expand Down

0 comments on commit 65f9927

Please sign in to comment.