sknano.core.atoms.CNAtoms¶
-
class
sknano.core.atoms.
CNAtoms
(atoms=None, casttype=True, **kwargs)[source][source]¶ An
Atoms
sub-class forCNAtom
s.A container class for
CNAtom
objects.Parameters: atoms : {None, sequence,
CNAtoms
}, optionalAttributes
CN_counts
Alias for coordination_number_counts
.M
Total mass of Atoms
.Natoms
Number of atoms in Atoms
.coordination_counts
Alias for coordination_number_counts
.coordination_number_counts
Coordination number counts. coordination_numbers
ndarray
ofCNAtom.CN
s.elements
ndarray
ofAtom.element
s inAtoms
.fmtstr
masses
ndarray
ofAtom.mass
s inAtoms
.symbols
ndarray
ofAtom.symbol
s inAtoms
.Methods
append
(atom)clear
()copy
()count
(item)extend
(other)filter
(condition[, invert])Filter Atoms
by condition.filtered
(condition[, invert])Return new list of Atoms
filtered by condition.get_atoms
([asarray])Return list of Atoms
.getatomattr
(attr)Get ndarray
of atom attributes attr.index
(item, *args)insert
(i, item)mapatomattr
([from_attr, to_attr, attrmap])Set/update atom attribute from another atom attribute with dict. pop
([i])remove
(item)reverse
()rezero
([epsilon])Set values with absolute value less than epsilon to zero. rotate
(**kwargs)Rotate Atom
vectors.sort
([key, reverse])todict
()translate
(t[, fix_anchor_points])Translate Atom
vectors byVector
t.