sknano.core.atoms.Trajectory¶
-
class
sknano.core.atoms.Trajectory(snapshots=None)[source][source]¶ Base class for trajectory analysis.
Attributes
NsnapsNumber of Snapshots inTrajectory.aselectAlias for Trajectory.atom_selection.atom_selectionAtomSelection class. fmtstrFormat string. nselectAlias for Trajectory.nselected.nselectedNumber of selected snapshots. reference_snapshotsnapshotsReturns the list of Snapshots.t0_snapshottime_selectiontimestepstselectAlias for Trajectory.time_selection.Methods
append(item)clear()copy()count(item)cull()Remove duplicate timesteps from Trajectory.extend(other)get_snapshot(ts)Return Snapshotwith 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 Snapshotwith timestep ts.todict()