Skip to content

Commit 17f0486

Browse files
jonasscheidparetje
andauthored
Update psm_utils/io/idxml.py
Co-authored-by: Kevin Velghe <[email protected]>
1 parent 1e53b84 commit 17f0486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psm_utils/io/idxml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def _parse_psm(
194194
score=peptide_hit.getScore(),
195195
precursor_mz=peptide_id.getMZ(),
196196
retention_time=peptide_id.getRT(),
197-
ion_mobility=float(peptide_id.getMetaValue("IM")) if peptide_id.getMetaValue("IM") is not None else None
197+
ion_mobility=float(im) if (im := peptide_id.getMetaValue("IM")) is not None else None,
198198
protein_list=[
199199
accession.decode() for accession in peptide_hit.extractProteinAccessionsSet()
200200
],

0 commit comments

Comments
 (0)