Bonds¶
-
class
sknano.core.atoms.
Bonds
(topolist=None, parent=None)[source] [edit on github][source]¶ Bases:
sknano.core.atoms.mixins.TopologyCollection
Base class for collection of atom
Bond
s.Parameters: Attributes
Nbonds
Number of Bond
s inBonds
.Ntypes
Number of unique Topology.type
s.atom_ids
list
ofatom_ids
.bonds
ndarray
ofbond
s.fmtstr
Format string. ids
list
ofid
s.lengths
An alias for Bonds.bonds
.mean
An alias for TopologyCollection.mean_measure
.mean_bond
Mean bond length. mean_length
An alias for Bonds.mean_bond
.mean_measure
Mean measure. measures
ndarray
ofmeasure
s.parent
Parent Molecule
, if any.statistics
Bond stats. strains
ndarray
ofstrain
s.types
list
oftype
s.unique
Return new TopologyCollection
object containing the set of uniqueTopology
s.unit_vectors
ndarray
ofunit_vector
s.vectors
ndarray
ofvector
s.Methods
append
(item)clear
()compute_strains
(reference)Return ndarray
of topology measure strains.copy
()count
(item)extend
(other)index
(item, *args)insert
(i, item)pop
([i])remove
(item)reverse
()sort
([key, reverse])todict
()Return dict
of constructor parameters.