aboutsummaryrefslogtreecommitdiff
path: root/quality_control/standard_error.py
diff options
context:
space:
mode:
Diffstat (limited to 'quality_control/standard_error.py')
-rw-r--r--quality_control/standard_error.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/quality_control/standard_error.py b/quality_control/standard_error.py
index c866993..aa7df3c 100644
--- a/quality_control/standard_error.py
+++ b/quality_control/standard_error.py
@@ -14,6 +14,8 @@ def invalid_value(
"""
if re.search(r"^[0-9]+\.[0-9]{6,}$", val):
return None
+ if re.search(r"^0\.0+$", val) or re.search("^0+$", val):
+ return None
return InvalidValue(
line_number, column_number, val, (
f"Invalid value '{val}'. "