aboutsummaryrefslogtreecommitdiff
path: root/quality_control/average.py
diff options
context:
space:
mode:
Diffstat (limited to 'quality_control/average.py')
-rw-r--r--quality_control/average.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/quality_control/average.py b/quality_control/average.py
index c552ba3..3261e1c 100644
--- a/quality_control/average.py
+++ b/quality_control/average.py
@@ -4,7 +4,8 @@ import re
from .errors import InvalidCellValue
def valid_value(val):
- if re.search("^[0-9]+\.[0-9]{3}$", val):
+ """Checks whether `val` is a valid value for averages"""
+ if re.search(r"^[0-9]+\.[0-9]{3}$", val):
return float(val)
raise InvalidCellValue(
f"Invalid value '{val}'.\n"