@sites.setter
def sites(self, v):
    ' Set the sites property and update all other dependent\n       properties (symbols, occupancy) according to the sites '
    an = np.zeros(len(v), dtype=int)
    occ = {}
    for (i, j) in enumerate(v):
        occ[i] = j.occupation.as_dict
        an[i] = j.occupation.primary_atomic_number
    self.set_atomic_numbers(an)
    self.info['occupancy'] = occ
    self._unique_sites = v
Set the sites property and update all other dependent
properties (symbols, occupancy) according to the sites
@sites.setter
def sites(self, v):
    ' Set the sites property and update all other dependent\n       properties (symbols, occupancy) according to the sites '
    an = np.zeros(len(v), dtype=int)
    occ = {}
    for (i, j) in enumerate(v):
        occ[i] = j.occupation.as_dict
        an[i] = j.occupation.primary_atomic_number
    self.set_atomic_numbers(an)
    self.info['occupancy'] = occ
    self._unique_sites = v