From 80661e6061518bfca46e66410d2661de5f366ff5 Mon Sep 17 00:00:00 2001 From: zhoujt1994 Date: Thu, 20 Feb 2025 21:12:46 -0800 Subject: [PATCH 1/2] Update utilities.py debug --- ALLCools/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ALLCools/utilities.py b/ALLCools/utilities.py index 5d2daad..c8ab459 100644 --- a/ALLCools/utilities.py +++ b/ALLCools/utilities.py @@ -76,7 +76,7 @@ def parse_mc_pattern(pattern: str) -> set: except KeyError: raise KeyError(f"Base {base} is not in IUPAC table.") context_set = {"".join(i) for i in itertools.product(*all_pos_list)} - if pattern = 'CH': + if pattern == 'CH': context_set.add('CH') return context_set From bd8776c55de2de4f1b0b744d98bfca4cd8d42159 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 21 Feb 2025 05:15:00 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- ALLCools/utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ALLCools/utilities.py b/ALLCools/utilities.py index c8ab459..27e16e6 100644 --- a/ALLCools/utilities.py +++ b/ALLCools/utilities.py @@ -76,8 +76,8 @@ def parse_mc_pattern(pattern: str) -> set: except KeyError: raise KeyError(f"Base {base} is not in IUPAC table.") context_set = {"".join(i) for i in itertools.product(*all_pos_list)} - if pattern == 'CH': - context_set.add('CH') + if pattern == "CH": + context_set.add("CH") return context_set