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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/quality_control/average.py b/quality_control/average.py
index 2b098db..ad732d0 100644
--- a/quality_control/average.py
+++ b/quality_control/average.py
@@ -9,8 +9,8 @@ def invalid_value(line_number: int, column_number: int, val: str) -> Union[
"""Return an `InvalidValue` object if `val` is not a valid "averages"
value."""
return cell_error(
- r"^[0-9]+\.[0-9]{3}$", val, line=line_number, column=column_number,
- value=val, message=(
+ r"^([0-9]+\.[0-9]{3}|[0-9]+\.?0*)$", val, line=line_number,
+ column=column_number, value=val, message=(
f"Invalid value '{val}'. "
"Expected string representing a number with exactly three "
"decimal places."))