TopologyCollection¶
-
class
sknano.core.atoms.
TopologyCollection
(topolist=None, parent=None)[source] [edit on github][source]¶ Bases:
sknano.core.strings.TabulateMixin
,sknano.core.collections.UserList
Base
Atoms
topology class.Parameters: Attributes
Ntypes
Number of unique Topology.type
s.atom_ids
list
ofatom_ids
.fmtstr
Format string. ids
list
ofid
s.mean
An alias for TopologyCollection.mean_measure
.mean_measure
Mean measure. measures
ndarray
ofmeasure
s.parent
Parent Molecule
, if any.statistics
TopologyStats
ofTopologyCollection.measures
statistics.strains
ndarray
ofstrain
s.types
list
oftype
s.unique
Return new TopologyCollection
object containing the set of uniqueTopology
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.