Skip to content

Commit 295e2fb

Browse files
Jon BrenasJon Brenas
authored andcommitted
type erros
1 parent 9852ed0 commit 295e2fb

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/anoph/test_pca.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,16 @@ def test_pca_fit_exclude_samples(fixture, api: AnophelesPca):
344344
def test_pca_cohort_downsampling(fixture, api: AnophelesPca):
345345
# Parameters for selecting input data.
346346
all_sample_sets = api.sample_sets()["sample_set"].to_list()
347-
sample_sets = np.random.sample(all_sample_sets, 2)
347+
sample_sets = np.random.choice(all_sample_sets, size=2)
348348
data_params = dict(
349349
region=np.random.choice(api.contigs),
350350
sample_sets=sample_sets,
351-
site_mask=np.random.choice((None,) + api.site_mask_ids),
351+
site_mask=np.random.choice(
352+
[
353+
None,
354+
]
355+
+ api.site_mask_ids
356+
),
352357
)
353358

354359
# Test cohort downsampling.

0 commit comments

Comments
 (0)