Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions corems/molecular_id/search/molecularFormulaSearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,13 +711,13 @@ def mass_by_ion_type(possible_formula_obj):
return possible_formula_obj._radical_mz(ion_charge)

elif ion_type == Labels.adduct_ion and adduct_atom:
return possible_formula._adduct_mz(ion_charge, adduct_atom)
return possible_formula_obj._adduct_mz(ion_charge, adduct_atom)

else:
# will return externally calculated mz if is set, #use on Bruker Reference list import
# if the ion type is known the ion mass based on molecular formula ion type
# if ion type is unknow will return neutral mass
return possible_formula.mz_calc
return possible_formula_obj.mz_calc

if formulas:
if isinstance(formulas[0], LCMSLibRefMolecularFormula):
Expand Down