Skip to content

Commit 2de3aa3

Browse files
Update feat_extractor.py
1 parent be943d9 commit 2de3aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deeplc/feat_extractor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def rolling_sum(a, n=2):
492492
matrix_hc[i, dict_aa[peptide_position[0]]] = 1.
493493
except KeyError:
494494
logger.warning(
495-
"Skipping the following (not in library): ", peptide_position[1])
495+
f"Skipping the following (not in library): {i} {peptide_position}")
496496
except IndexError:
497497
# Likely to be a sequence > 60 AA
498498
logger.warning(f"Could not add the following atom: {i} {peptide_position}")
@@ -502,7 +502,7 @@ def rolling_sum(a, n=2):
502502
modification_composition = peptide_position[1][0].composition
503503
except KeyError:
504504
logger.warning(
505-
"Skipping the following (not in library): ", peptide_position[1])
505+
f"Skipping the following (not in library): {peptide_position[1]}")
506506
continue
507507

508508
for atom_position_composition,atom_change in modification_composition.items():

0 commit comments

Comments
 (0)