code: def get_element_profile(self, element, comp, comp_tol=1e-5):
          
          element = get_el_sp(element)
          element = Element(element.symbol)
  
          if element not in self.elements:
              raise ValueError("get_transition_chempots can only be called with"
                               " elements in the phase diagram.")
          gccomp = Composition({el: amt for el, amt in comp.items()
                                if el != element})
          elref = self.el_refs[element]
          elcomp = Composition(element.symbol)
          evolution = []
  
          for cc in self.get_critical_compositions(elcomp, gccomp)[1:]:
              decomp_entries = self.get_decomposition(cc).keys()
              decomp = [k.composition for k in decomp_entries]
              rxn = Reaction([comp], decomp + [elcomp])
              rxn.normalize_to(comp)
              c = self.get_composition_chempots(cc + elcomp * 1e-5)[element]
              amt = -rxn.coeffs[rxn.all_comp.index(elcomp)]
              evolution.append({'chempot': c,
                                'evolution': amt,
                                'element_reference': elref,
                                'reaction': rxn, 'entries': decomp_entries})
          return evolution
docs: Provides the element evolution data for a composition.
          For example, can be used to analyze Li conversion voltages by varying
          uLi and looking at the phases formed. Also can be used to analyze O2
          evolution by varying uO2.
  
          Args:
              element: An element. Must be in the phase diagram.
              comp: A Composition
              comp_tol: The tolerance to use when calculating decompositions.
                  Phases with amounts less than this tolerance are excluded.
                  Defaults to 1e-5.
  
          Returns:
              Evolution data as a list of dictionaries of the following format:
              [ {'chempot': -10.487582010000001, 'evolution': -2.0,
              'reaction': Reaction Object], ...]