Working with trajectory files

Extracting specific trajectory structure

from ase.io.trajectory import Trajectory
from ase.io import write
traj = Trajectory('abc.traj')
atoms = traj[26]
write("abc_26.xyz", atoms)

Shorthand for last trajectory structure

from ase.io import read, write
atoms = read('abc.traj')
write('abc_last.xyz',atoms)