e15190.utilities.atomic_mass_evaluation.mass

e15190.utilities.atomic_mass_evaluation.mass(argv, unitless=True, not_found_okay=False, not_found_warning=True)

Get mass of isotope.

Parameters
  • argv (str or tuple or dict) – If str, it should be an expression of isotope, e.g. ‘Ca40’; if tuple, it should be (A, Z); if dict, it should have keys A and Z.

  • unitless (bool, default True) – If True, returns the mass floating point in \(\mathrm{MeV}/c^2\); if False, returns the mass with units.

  • not_found_okay (bool, default False) – If True, returns zero mass when the isotope is not found; if False, raises a ValueError when the isotope is not found.

  • not_found_warning (bool, default True) – If True, prints a warning when the isotope is not found; if False, nothing is printed. This parameter is ignored if not_found_okay is False.

Returns

mass – The mass of the isotope.

Return type

float or astropy.units.Quantity