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