Skip to content

Commit e7bd07e

Browse files
authored
Merge pull request #223 from compomics/fix/numpy2-compatibility
Fix numpy v2 compatibility in DeepLC feature generator (np.inf)
2 parents 8d9f032 + 7a88e32 commit e7bd07e

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)