We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 57c6d8a + edebc2b commit 55432a5Copy full SHA for 55432a5
1 file changed
tests/anoph/test_pca.py
@@ -93,8 +93,9 @@ def test_pca_plotting(fixture, api: AnophelesPca):
93
# PCA parameters.
94
n_samples = ds.sizes["samples"]
95
n_snps_available = ds.sizes["variants"]
96
- n_snps = random.randint(1, n_snps_available)
+ n_snps = random.randint(4, n_snps_available)
97
# PC3 required for plot_pca_coords_3d()
98
+ assert min(n_samples, n_snps) > 3
99
n_components = random.randint(3, min(n_samples, n_snps))
100
101
# Run the PCA.
0 commit comments