From 73785e3f2e5ac0288e1fc21dd102b0558dcdc3be Mon Sep 17 00:00:00 2001 From: Alison Meynert Date: Tue, 7 Jan 2025 09:49:13 -0800 Subject: [PATCH] feat: description of ValueErrors matches error messages --- prymer/offtarget/offtarget_detector.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prymer/offtarget/offtarget_detector.py b/prymer/offtarget/offtarget_detector.py index ccd7bfb..a9d2be3 100644 --- a/prymer/offtarget/offtarget_detector.py +++ b/prymer/offtarget/offtarget_detector.py @@ -221,13 +221,13 @@ def __init__( executable: string or Path representation of the `bwa` executable path Raises: - ValueError: If `max_amplicon_size` is less than 1. + ValueError: If `max_amplicon_size` is not greater than 0. ValueError: If any of `max_primer_hits`, `max_primer_pair_hits`, or - `min_primer_pair_hits` are less than 0. - ValueError: If `three_prime_region_length` is less than 1. + `min_primer_pair_hits` are not greater than or equal to 0. + ValueError: If `three_prime_region_length` is not greater than 0. ValueError: If `max_mismatches_in_three_prime_region` is outside the range 0 to `three_prime_region_length`, inclusive. - ValueError: If `max_mismatches` is less than 0. + ValueError: If `max_mismatches` is not greater than or equal to 0. """ errors: list[str] = [] if max_amplicon_size < 1: