mescla.isotopes.check_isotopes

mescla.isotopes.check_isotopes(table, raise_on_problem=False)[source]

Look for solute isotope ratios that have not been linearised.

Called automatically by the estimators, which issue a warning rather than fail: an unlinearised solute isotope is a silent correctness bug, and silence is the thing worth preventing.

Parameters:
  • table (array_like, DataFrame or ChemTable)

  • raise_on_problem (bool, default False) – Raise instead of returning the messages.

Returns:

list of str – One message per problem found; empty when there is nothing to report.

Return type:

list[str]