auxi/modelling/process/materials/chem.py
def _is_compound_mass_tuple(self, value):
        """
        Determines whether value is a tuple of the format (compound(str),
        mass(float)).
        """

        if not type(value) is tuple:
            return False
        elif not len(value) == 2:
            return False
        elif not type(value[0]) is str:
            return False
        elif not type(value[1]) is float:
            return False
        else:
            return True
def _is_compound_mass_tuple(self, value):
        """
        Determines whether value is a tuple of the format (compound(str),
        mass(float)).
        """

        if not type(value) is tuple:
            return False
        elif not len(value) == 2:
            return False
        elif not type(value[0]) is str:
            return False
        elif not type(value[1]) is float:
            return False
        else:
            return True
def _is_compound_mass_tuple ( self , value ) : if not type ( value ) is tuple : return False elif not len ( value ) == 2 : return False elif not type ( value [ 0 ] ) is str : return False elif not type ( value [ 1 ] ) is float : return False else : return True
Determines whether value is a tuple of the format (compound(str),
        mass(float)).
Determines whether value is a tuple of the format ( compound ( str ) mass ( float )) .