aboutsummaryrefslogtreecommitdiff
path: root/quality_control
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-04-13 10:09:02 +0300
committerFrederick Muriuki Muriithi2022-04-13 10:09:02 +0300
commitbb8a92b36f85f6f3b2c6cd9ed6bbebd03ecf127c (patch)
tree2a0f89e8c8f431fff9674ec6c730bdbdcfe9c430 /quality_control
parent0cc8fd5fb2a026662dc2bd12f6bad9f68e5da5b0 (diff)
downloadgn-uploader-bb8a92b36f85f6f3b2c6cd9ed6bbebd03ecf127c.tar.gz
Add tests outline for file parsing
Add dummy failing tests and a stub for the parsing of the files
Diffstat (limited to 'quality_control')
-rw-r--r--quality_control/parsing.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/quality_control/parsing.py b/quality_control/parsing.py
new file mode 100644
index 0000000..52124f9
--- /dev/null
+++ b/quality_control/parsing.py
@@ -0,0 +1,12 @@
+from enum import Enum
+
+import quality_control.average as avg
+import quality_control.standard_error as se
+from quality_control.errors import InvalidCellValue, InvalidHeaderValue
+
+class FileType(Enum):
+ AVERAGE = 1
+ STANDARD_ERROR = 2
+
+def parse_file(filepath: str, filetype: FileType):
+ pass