pypact/input/inputdata.py
def addElement(self, element, percentage = 100.0):
        """
            Add an element
            element: character symbol of element name, e.g. 'Fe'
            percentage: percentage contribution of total mass, should not exceed 100%
        """
        if percentage > 100.0:
            raise PypactOutOfRangeException("Cannot set the element percentage above 100%.")
        
        self._inventorymass.entries.append((element, percentage))

            Add an element
            element: character symbol of element name, e.g. 'Fe'
            percentage: percentage contribution of total mass, should not exceed 100%
        
Add an element
element: character symbol of element name, e.g. 'Fe'
percentage: percentage contribution of total mass, should not exceed 100%
Add an element element : character symbol of element name e . g . ' Fe ' percentage : percentage contribution of total mass should not exceed 100%
def addElement(self, element, percentage = 100.0):
        if percentage > 100.0:
            raise PypactOutOfRangeException("Cannot set the element percentage above 100%.")
        self._inventorymass.entries.append((element, percentage))
def addElement ( self , element , percentage = 100.0 ) : if percentage > 100.0 : raise PypactOutOfRangeException ( "Cannot set the element percentage above 100%." ) self . _inventorymass . entries . append ( ( element , percentage ) )
Add an element
element: character symbol of element name, e.g.
Add an element element : character symbol of element name e . g .
"""
            Add an element
            element: character symbol of element name, e.g. 'Fe'
            percentage: percentage contribution of total mass, should not exceed 100%
        """
self
element
percentage