omas.search_ion¶
- omas.search_ion(ion_ods, label=None, Z=None, A=None, no_matches_raise_error=True, multiple_matches_raise_error=True)[source]¶
utility function used to identify the ion number and element numbers given the ion label and or their Z and/or A
- Parameters
ion_ods – ODS location that ends with .ion
label – ion label
Z – ion element charge
A – ion element mass
- Parame no_matches_raise_error
whether to raise a IndexError when no ion matches are found
- Parame multiple_matches_raise_error
whether to raise a IndexError when multiple ion matches are found
- Returns
dictionary with matching ions labels, each with list of matching ion elements