Trajectory¶
-
class
sknano.core.atoms.trajectory.Trajectory(snapshots=None)[source] [edit on github][source]¶ Bases:
sknano.core.strings.TabulateMixin,sknano.core.collections.UserListBase class for trajectory analysis.
Parameters: snapshots ( list, optional) –Attributes
NsnapsNumber of Snapshots inTrajectory.aselectAlias for atom_selection.atom_selectionAtomSelectionclass.fmtstrFormat string. nselectAlias for nselected.nselectedNumber of selected snapshots. reference_snapshotReference snapshot for computing changes in atom trajectories. snapshotsReturns the list of TrajectorySnapshots.time_selectionTimeSelectionclass.timestepsList of selected TrajectorySnapshottimesteps.tselectAlias for time_selection.Methods
append(item)clear()copy()count(item)cull()Remove duplicate timesteps from Trajectory.extend(other)get_snapshot(ts)Return Snapshotwith timestepts.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 timestepts.todict()Return dictof constructor parameters.