Swap-atoms-tip added

parent cd99e22d
Pipeline #10389201 passed with stage
in 8 minutes and 36 seconds
......@@ -49,6 +49,10 @@ Three equivalent ways to delete carbon atoms:
>>> del atoms[[atom.index for atom in atoms if atom.symbol == 'C']]
>>> del atoms[[atom.symbol == 'C' for atom in atoms]]
Swap the positions of two atoms with index 3 and 4:
>>> atoms.positions[[3, 4]] = atoms.positions[[4, 3]]
Trajectories
============
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment