Skip to content

Commit

Permalink
Fix try except
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbinBouwmeester committed Sep 18, 2023
1 parent afc89fb commit 081b754
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# [2.2.18] - 2023-09-18

- Fix wrong error except

# [2.2.17] - 2023-09-18

- Fix peptides that are too long and their modifcations
Expand Down
2 changes: 1 addition & 1 deletion deeplc/feat_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def rolling_sum(a, n=2):
for k, v in position_composition.items():
try:
matrix[i, dict_index[k]] = v
except warning:
except IndexError:
logger.warning(f"Could not add the following value: {v}")

for p in positions_pos:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='deeplc',
version='2.2.17',
version='2.2.18',
license='apache-2.0',
description='DeepLC: Retention time prediction for (modified) peptides using Deep Learning.',
long_description=LONG_DESCRIPTION,
Expand Down

0 comments on commit 081b754

Please sign in to comment.