diff options
Diffstat (limited to 'quality_control/parsing.py')
-rw-r--r-- | quality_control/parsing.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/quality_control/parsing.py b/quality_control/parsing.py index a4edb0f..9fe88f1 100644 --- a/quality_control/parsing.py +++ b/quality_control/parsing.py @@ -62,7 +62,7 @@ def parse_file(filepath: str, filetype: FileType, strains: list): with open(filepath, encoding="utf-8") as input_file: for line_number, line in enumerate(input_file): if line_number == 0: - yield __parse_header(line, strains) + yield __parse_header(line, strains), seek_pos + len(line) seek_pos = seek_pos + len(line) continue @@ -83,7 +83,6 @@ def parse_file(filepath: str, filetype: FileType, strains: list): def parse_errors(filepath: str, filetype: FileType, strains: list, seek_pos: int = 0) -> Generator: """Retrieve ALL the parse errors""" - print(f"seek_pos: {seek_pos}, {type(seek_pos)}") assert seek_pos >= 0, "The seek position must be at least zero (0)" def __error_type(error): |