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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/quality_control/average.py b/quality_control/average.py
index 47a04d9..fd0cf4e 100644
--- a/quality_control/average.py
+++ b/quality_control/average.py
@@ -10,6 +10,8 @@ def invalid_value(line_number: int, column_number: int, val: str) -> Union[
value."""
if re.search(r"^[0-9]+\.[0-9]{3}$", val):
return None
+ if re.search(r"^0\.0+$", val) or re.search("^0+$"):
+ return None
return InvalidValue(
line_number, column_number, val, (
f"Invalid value '{val}'. "