From eb8d16fd67fc954e29ae899eddc4ec23356dbff8 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Thu, 17 Jul 2025 09:42:13 +0300 Subject: Skip blank lines. Signed-off-by: Munyoki Kilyungi --- scripts/lmdb_matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/lmdb_matrix.py') diff --git a/scripts/lmdb_matrix.py b/scripts/lmdb_matrix.py index a66f2d1..efd7c58 100644 --- a/scripts/lmdb_matrix.py +++ b/scripts/lmdb_matrix.py @@ -170,7 +170,7 @@ def get_genotype_dimensions(genotype_file: str) -> tuple[int, int]: line = stream.readline() counter += 1 match line: - case "" | _ if line.startswith(("#", "@")): + case "" | _ if line.startswith(("#", "@", "\n")): continue case _: rows = line.split() -- cgit 1.4.1