about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-10-02 09:23:58 -0500
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-10-02 09:24:22 -0500
commitde616375f1c006c34e6cefed83e5dba7136f670e (patch)
treecee50318b982e7502f871c05cbee3fb94ca9b7e3 /scripts
parentd1e99bbec35e7ebbefa9858cc46acbdcc36fc8c7 (diff)
downloadgn-uploader-de616375f1c006c34e6cefed83e5dba7136f670e.tar.gz
Update `LineError` type.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genotypes/types.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/scripts/genotypes/types.py b/scripts/genotypes/types.py
index 482d8d4..18af7b8 100644
--- a/scripts/genotypes/types.py
+++ b/scripts/genotypes/types.py
@@ -24,21 +24,22 @@ class FieldsIdentity:
     samples: Sequence[str]
 
 
+@dataclass
+class LineError:
+    """An error in a specific line of the genotype file."""
+    row_header: str
+    column_header: str
+    message: str
+    line: Sequence[str]
+
+
 @dataclass(frozen=True)
 class LineDetails:
     """Data type for processed line details"""
     line_content: Sequence[Union[str, None]]
     geno_symbols: Sequence[str]
     line_header: str
-
-
-@dataclass(frozen=True)
-class LineError:
-    """An error object for a line."""
-    marker: str
-    field: str
-    value: Union[str, None]
-    message: str
+    errors: Sequence[LineError]
 
 
 @dataclass(frozen=True)