about summary refs log tree commit diff
path: root/quality_control/standard_error.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-05-18 17:34:55 +0300
committerFrederick Muriuki Muriithi2022-05-18 17:36:16 +0300
commit347ca2fe50225b4736e69bb86d8b278818be40ac (patch)
treedf7fcab96bb0dfc44633e93b5875451dfd1af305 /quality_control/standard_error.py
parent8f32812ce73193366ee00d883fd427c830f5a8e9 (diff)
downloadgn-uploader-347ca2fe50225b4736e69bb86d8b278818be40ac.tar.gz
Remove obsoleted code. Fix linting errors.
Remove the old code that relied on exceptions to parse errors in the
uploaded files.
Diffstat (limited to 'quality_control/standard_error.py')
-rw-r--r--quality_control/standard_error.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/quality_control/standard_error.py b/quality_control/standard_error.py
index 022cc9b..c866993 100644
--- a/quality_control/standard_error.py
+++ b/quality_control/standard_error.py
@@ -3,19 +3,10 @@ import re
 from typing import Union
 
 from .errors import InvalidValue
-from .errors import InvalidCellValue
 
-def valid_value(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}'. "
-        "Expected string representing a number with at least six decimal "
-        "places.")
-
-def invalid_value(line_number: int, column_number: int, val: str) -> Union[
-        InvalidValue, None]:
+def invalid_value(
+        line_number: int, column_number: int, val: str) -> Union[
+            InvalidValue, None]:
     """
     Returns a `quality_control.errors.InvalidValue` object in the case where
     `val` is not a valid input for standard error files, otherwise, it returns