From 61bab3b9fe0393f80cbfac70f97b72cf01339ff0 Mon Sep 17 00:00:00 2001 From: RobbinBouwmeester Date: Tue, 19 Sep 2023 10:38:36 +0200 Subject: [PATCH] Update feat_extractor.py --- deeplc/feat_extractor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deeplc/feat_extractor.py b/deeplc/feat_extractor.py index 509964b..6c9eb4f 100644 --- a/deeplc/feat_extractor.py +++ b/deeplc/feat_extractor.py @@ -463,7 +463,9 @@ def rolling_sum(a, n=2): try: matrix[i, dict_index[k]] = v except IndexError: - logger.warning(f"Could not add the following value: {v}") + logger.warning(f"Could not add the following value: pos {i} for atom {k} with value {v}") + except KeyError: + logger.warning(f"Could not add the following value: pos {i} for atom {k} with value {v}") for p in positions_pos: aa = seq[p]