Skip to content

Commit 8228261

Browse files
committed
Improve error message formatting for cohort downsampling validation
1 parent 2dfa8f8 commit 8228261

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

malariagen_data/anoph/pca.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ def pca(
101101
# Handle cohort downsampling.
102102
if cohorts is not None:
103103
if max_cohort_size is None:
104-
raise ValueError("`max_cohort_size` is required when `cohorts` is provided.")
104+
raise ValueError(
105+
"`max_cohort_size` is required when `cohorts` is provided."
106+
)
105107
if sample_indices is not None:
106108
raise ValueError(
107109
"Cannot use `sample_indices` with `cohorts` and `max_cohort_size`."

0 commit comments

Comments
 (0)