From 6e41d7fd00da40516ece337575a88b68382afd89 Mon Sep 17 00:00:00 2001 From: Arian Jamasb Date: Mon, 8 Jul 2024 19:15:35 +0100 Subject: [PATCH] reduce whitespace --- biopandas/mmtf/pandas_mmtf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biopandas/mmtf/pandas_mmtf.py b/biopandas/mmtf/pandas_mmtf.py index a2db5de..c98ec00 100644 --- a/biopandas/mmtf/pandas_mmtf.py +++ b/biopandas/mmtf/pandas_mmtf.py @@ -655,7 +655,7 @@ def _seq1(seq, charmap: Dict[str, str], undef_code="X"): onecode = {k.upper(): v for k, v in charmap.items()} # add the given termination codon code and custom maps onecode.update((k.upper(), v) for k, v in charmap.items()) - seqlist = [seq[3 * i : 3 * (i + 1)] for i in range(len(seq) // 3)] + seqlist = [seq[3 * i:3 * (i + 1)] for i in range(len(seq) // 3)] return "".join(onecode.get(aa.upper(), undef_code) for aa in seqlist)