Skip to content

Commit 7a88e32

Browse files
committed
Fix numpy v2 compatibility in DeepLC feature generator (np.inf); fixes #219
1 parent 8d9f032 commit 7a88e32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ms2rescore/feature_generators/deeplc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ def add_features(self, psm_list: PSMList) -> None:
131131
for run, psms in runs.items():
132132
peptide_rt_diff_dict = defaultdict(
133133
lambda: {
134-
"observed_retention_time_best": np.Inf,
135-
"predicted_retention_time_best": np.Inf,
136-
"rt_diff_best": np.Inf,
134+
"observed_retention_time_best": np.inf,
135+
"predicted_retention_time_best": np.inf,
136+
"rt_diff_best": np.inf,
137137
}
138138
)
139139
logger.info(

0 commit comments

Comments
 (0)