Skip to content

Commit 61bab3b

Browse files
Update feat_extractor.py
1 parent 081b754 commit 61bab3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deeplc/feat_extractor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,9 @@ def rolling_sum(a, n=2):
463463
try:
464464
matrix[i, dict_index[k]] = v
465465
except IndexError:
466-
logger.warning(f"Could not add the following value: {v}")
466+
logger.warning(f"Could not add the following value: pos {i} for atom {k} with value {v}")
467+
except KeyError:
468+
logger.warning(f"Could not add the following value: pos {i} for atom {k} with value {v}")
467469

468470
for p in positions_pos:
469471
aa = seq[p]

0 commit comments

Comments
 (0)