Skip to content

Commit 0cac73d

Browse files
committed
Fix Numpy v2 compatibility (backport of #223, fixes #219)
1 parent 77a7713 commit 0cac73d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ms2rescore/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""MS²Rescore: Sensitive PSM rescoring with predicted MS² peak intensities and RTs."""
22

3-
__version__ = "3.1.4"
3+
__version__ = "3.1.5"
44

55
from warnings import filterwarnings
66

ms2rescore/feature_generators/deeplc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ def add_features(self, psm_list: PSMList) -> None:
128128
for run, psms in runs.items():
129129
peptide_rt_diff_dict = defaultdict(
130130
lambda: {
131-
"observed_retention_time_best": np.Inf,
132-
"predicted_retention_time_best": np.Inf,
133-
"rt_diff_best": np.Inf,
131+
"observed_retention_time_best": np.inf,
132+
"predicted_retention_time_best": np.inf,
133+
"rt_diff_best": np.inf,
134134
}
135135
)
136136
logger.info(

0 commit comments

Comments
 (0)