matchms.filtering.add_precursor_mz module

matchms.filtering.add_precursor_mz.add_precursor_mz(spectrum_in)[source]

Add precursor_mz to correct field and make it a float.

For missing precursor_mz field: check if there is “pepmass”” entry instead. For string parsed as precursor_mz: convert to float.