From c2fd08d6716b41525d20c52cf19d6c3ac0799593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Municoy?= Date: Fri, 29 Jul 2022 16:45:17 +0200 Subject: [PATCH] Fix typo --- frag_pele/Helpers/correct_fragment_names.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frag_pele/Helpers/correct_fragment_names.py b/frag_pele/Helpers/correct_fragment_names.py index e38a16e..d95f952 100644 --- a/frag_pele/Helpers/correct_fragment_names.py +++ b/frag_pele/Helpers/correct_fragment_names.py @@ -12,7 +12,7 @@ def main(pdb_path, lig_chain="L"): counters = {i: elements.count(i) for i in list_of_unique_elements} counter = counters[line[76:78]] new_name = "{}{}".format(line[76:78].strip().upper(), counter) - while new_name < 4: + while len(new_name) < 4: new_name = new_name + " " dictionary_to_transcript[line[12:16]] = new_name line = list(line)