Snapshot¶
-
class
sknano.core.atoms.trajectory.Snapshot(trajectory=None)[source] [edit on github][source]¶ Bases:
sknano.core.strings.TabulateMixin,sknano.core.meta.BaseClassContainer class for
Trajectorydata at single timestepParameters: trajectory ( Trajectory, optional) –Attributes
aselectAlias for Snapshot.atom_selection.atom_selectionndarrayboolean array.atomsSnapshot atoms. fmtstrFormat string. formatterAn instance of DUMPFormatter.nselectAlias for Snapshot.nselected.nselectedNumber of selected atoms in this snapshot. selectedTrue/False if this snapshot is selected. tselectAlias for Snapshot.selected.Methods
get_atoms([asarray])Get atoms. todict()Return dictof constructor parameters.Attributes Summary
aselectAlias for Snapshot.atom_selection.atom_selectionndarrayboolean array.atomsSnapshot atoms. formatterAn instance of DUMPFormatter.nselectAlias for Snapshot.nselected.nselectedNumber of selected atoms in this snapshot. selectedTrue/False if this snapshot is selected. tselectAlias for Snapshot.selected.Methods Summary
get_atoms([asarray])Get atoms. todict()Return dictof constructor parameters.Attributes Documentation
-
aselect¶ Alias for
Snapshot.atom_selection.
-
atoms¶ Snapshot atoms.
-
formatter¶ An instance of
DUMPFormatter.
-
nselect¶ Alias for
Snapshot.nselected.
-
nselected¶ Number of selected atoms in this snapshot.
-
selected¶ True/False if this snapshot is selected.
-
tselect¶ Alias for
Snapshot.selected.
Methods Documentation
-
get_atoms(asarray=False)[source] [edit on github][source]¶ Get atoms.
Parameters: asarray ( bool) –Returns: if asarrayisTrue, the atoms are returned as anndarray, otherwise anMDAtomsinstance is returned.Return type: ndarrayorMDAtoms
-
todict()[source] [edit on github][source]¶ Return
dictof constructor parameters.
-