pmutt.io.excel.set_element

pmutt.io.excel.set_element(header, value, output_structure, delimiter='.')

Parses element header and assigns to output_structure[‘elements’]

Parameters:
  • header (str) – String containing the element name. Element symbol should be at the end. e.g. ‘element.O’

  • value (int) – Amount found in formula

  • output_structure (dict) – Structure to assign value. Will assign to output_structure[‘elements’][element]

  • delimiter (str) – Delimiter for element. Element symbol should be at the end