code: def modify_lattice(self, new_lattice):
          
          self._lattice = new_lattice
          for site in self._sites:
              site.lattice = new_lattice
docs: Modify the lattice of the structure.  Mainly used for changing the
          basis.
  
          Args:
              new_lattice (Lattice): New lattice