def displace_position(structure, displacement, entry):
    'Displace a position in the StructureData.'
    sites = structure.sites
    positions = []
    for site in sites:
        positions.append(site.position)
    new_position = (np.asarray(positions[(entry - 1)]) + displacement)
    new_position = new_position.tolist()
    positions[(entry - 1)] = tuple(new_position)
    structure.reset_sites_positions(positions)
Displace a position in the StructureData.
def displace_position(structure, displacement, entry):
    
    sites = structure.sites
    positions = []
    for site in sites:
        positions.append(site.position)
    new_position = (np.asarray(positions[(entry - 1)]) + displacement)
    new_position = new_position.tolist()
    positions[(entry - 1)] = tuple(new_position)
    structure.reset_sites_positions(positions)