TopologyCollection

class sknano.core.atoms.mixins.TopologyCollection(topolist=None, parent=None)[source] [edit on github][source]

Bases: sknano.core.strings.TabulateMixin, sknano.core.collections.UserList

Base Atoms topology class.

Parameters:
  • topolist ({None, sequence, Topology}, optional) – if not None, then a list of Topology objects
  • parent (Parent Molecule, if any.) –

Attributes

Ntypes Number of unique Topology.types.
atom_ids list of atom_ids.
fmtstr Format string.
ids list of ids.
mean An alias for TopologyCollection.mean_measure.
mean_measure Mean measure.
measures ndarray of measures.
parent Parent Molecule, if any.
statistics TopologyStats of TopologyCollection.measures statistics.
strains ndarray of strains.
types list of types.
unique Return new TopologyCollection object containing the set of unique Topologys.

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.