sknano.core.atoms.StructureAtoms.assign_unique_types¶
-
StructureAtoms.
assign_unique_types
(from_attr='element')[source]¶ Assign unique
TypeAtom.type
s to eachTypeAtom
inTypeAtoms
from an existing unique atom attribute.Changed in version 0.3.11: Now accepts a keyword argument from_attr.
The assignment of unique
TypeAtom.type
s is performed by mapping an existing atom attribute (default: element) to a unique integer, starting at 1.Parameters: from_attr :
str
An existing atom attribute used to generate an attribute mapping that maps the attribute to a unique atom
type
.