Skip to content

Commit

Permalink
fix _fill_missing_precursor_info check
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurDeclercq committed Apr 10, 2024
1 parent 1e11b4b commit b144d5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ms2rescore/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ def _fill_missing_precursor_info(psm_list, config):
get_missing_values(psm_list, config, rt_required=rt_required, im_required=im_required)

# Check if values are now present
for value_name in ["retention_time", "ion_mobility"]:
for value_name, required in zip(
["retention_time", "ion_mobility"], [rt_required, im_required]
):
if not required:
continue
if (
0.0 in psm_list[value_name]
or None in psm_list[value_name]
Expand Down

0 comments on commit b144d5f

Please sign in to comment.