elphick.geomet.utils.components.is_compositional
- elphick.geomet.utils.components.is_compositional(candidates, strict=True)[source]
Check if a list of candidates are compositional components (elements or oxides) :type candidates:
List[str] :param candidates: list of string candidates :type strict:bool:param strict: If True, the candidates must be in the list of known compositional components (elements or oxides) :param as chemical symbols.:- Return type:
Union[List[str],Dict[str,str]]- Returns:
If strict, a list of compositional components, otherwise a dict of the original candidates (keys) and their compositional component symbols (values)