docs: def as_dict(self):
          """
          Creates a dict of composition, energy, and ion name
          """
          d = {"ion": self.ion.as_dict(), "energy": self.energy,
               "name": self.name}
          return d