diff options
Diffstat (limited to 'quality_control/standard_error.py')
-rw-r--r-- | quality_control/standard_error.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quality_control/standard_error.py b/quality_control/standard_error.py index 7b49913..805c30e 100644 --- a/quality_control/standard_error.py +++ b/quality_control/standard_error.py @@ -4,7 +4,8 @@ import re from .errors import InvalidCellValue def valid_value(val): - if re.search("^[0-9]+\.[0-9]{6,}$", val): + """Checks whether `val` is a valid value for standard errors""" + if re.search(r"^[0-9]+\.[0-9]{6,}$", val): return float(val) raise InvalidCellValue( f"Invalid value '{val}'.\n" |