aboutsummaryrefslogtreecommitdiff
path: root/quality_control/errors.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-02-20 10:57:56 +0300
committerFrederick Muriuki Muriithi2024-02-20 10:57:56 +0300
commitce243a57b24d6adecb169487e706290d91b22d19 (patch)
tree6b0b06a444c16ffb8be1c65fa4e5b78ced6a0615 /quality_control/errors.py
parenta4324cd24b5a14fbcf19a6e04d2b76fb2838038e (diff)
downloadgn-uploader-ce243a57b24d6adecb169487e706290d91b22d19.tar.gz
Track filename in the errors
R/qtl2 bundles can contain more than one file, of the same type. When errors are encountered in any of the files, we need to be able to inform the user which file it is, in addition to the line and column number.
Diffstat (limited to 'quality_control/errors.py')
-rw-r--r--quality_control/errors.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/quality_control/errors.py b/quality_control/errors.py
index fff6c7c..01afa81 100644
--- a/quality_control/errors.py
+++ b/quality_control/errors.py
@@ -3,10 +3,10 @@
from collections import namedtuple
InvalidValue = namedtuple(
- "InvalidValue", ("line", "column", "value", "message"))
+ "InvalidValue", ("filename", "line", "column", "value", "message"))
DuplicateHeading = namedtuple(
- "DuplicateHeading", ("line", "columns", "heading", "message"))
+ "DuplicateHeading", ("filename", "line", "columns", "heading", "message"))
InconsistentColumns = namedtuple(
- "InconsistentColumns", ("line", "header_count", "contents_count", "message"))
+ "InconsistentColumns", ("filename", "line", "header_count", "contents_count", "message"))