From 2b94ff1fbb872e382c1a17bb52d172f280d05926 Mon Sep 17 00:00:00 2001 From: ludovic autin Date: Thu, 8 Aug 2024 10:34:44 -0700 Subject: [PATCH] support for YASARA PETWORL Cif files. --- src/biotite/structure/io/pdbx/cif.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/biotite/structure/io/pdbx/cif.py b/src/biotite/structure/io/pdbx/cif.py index b7f8780a4..d5f37ba07 100644 --- a/src/biotite/structure/io/pdbx/cif.py +++ b/src/biotite/structure/io/pdbx/cif.py @@ -465,6 +465,7 @@ def _deserialize_looped(lines, expect_whitespace): column_names = [] i = 0 for key_line in lines: + key_line = key_line.strip() if key_line[0] == "_": # Key line key = key_line.split(".")[1] @@ -939,6 +940,7 @@ def _parse_category_name(line): If the line defines a category, return this name. Return ``None`` otherwise. """ + line = line.strip() if line[0] != "_": return None else: