Skip to content

Commit

Permalink
Update feat_extractor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbinBouwmeester authored Sep 19, 2023
1 parent be943d9 commit 2de3aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deeplc/feat_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def rolling_sum(a, n=2):
matrix_hc[i, dict_aa[peptide_position[0]]] = 1.
except KeyError:
logger.warning(
"Skipping the following (not in library): ", peptide_position[1])
f"Skipping the following (not in library): {i} {peptide_position}")
except IndexError:
# Likely to be a sequence > 60 AA
logger.warning(f"Could not add the following atom: {i} {peptide_position}")
Expand All @@ -502,7 +502,7 @@ def rolling_sum(a, n=2):
modification_composition = peptide_position[1][0].composition
except KeyError:
logger.warning(
"Skipping the following (not in library): ", peptide_position[1])
f"Skipping the following (not in library): {peptide_position[1]}")
continue

for atom_position_composition,atom_change in modification_composition.items():
Expand Down

0 comments on commit 2de3aa3

Please sign in to comment.