code: def material_formula(self):
          
          try:
              form = self.header.formula
          except IndexError:
              form = 'No formula provided'
          return "".join(map(str, form))
docs: Returns chemical formula of material from feff.inp file