sknano.core.atoms.Trajectory

class sknano.core.atoms.Trajectory(snapshots=None)[source][source]

Base class for trajectory analysis.

Attributes

Nsnaps Number of Snapshots in Trajectory.
aselect Alias for Trajectory.atom_selection.
atom_selection AtomSelection class.
fmtstr Format string.
nselect Alias for Trajectory.nselected.
nselected Number of selected snapshots.
reference_snapshot
snapshots Returns the list of Snapshots.
t0_snapshot
time_selection
timesteps
tselect Alias for Trajectory.time_selection.

Methods

append(item)
clear()
copy()
count(item)
cull() Remove duplicate timesteps from Trajectory.
extend(other)
get_snapshot(ts) Return Snapshot with timestep ts.
index(item, *args)
insert(i, item)
pop([i])
remove(item)
reverse()
sort([key, reverse]) Sort the trajectory Snapshots.
timestep_index(ts) Return index of Snapshot with timestep ts.
todict()