sknano.core.atoms.TypeAtoms¶
-
class
sknano.core.atoms.TypeAtoms(atoms=None, **kwargs)[source][source]¶ An
Atomssub-class forTypeAtoms.A container class for
TypeAtomobjects.Parameters: atoms : {None, sequence,
TypeAtoms}, optionalAttributes
MTotal mass of Atoms.NatomsNumber of atoms in Atoms.NtypesNumber of unique types.atomtypesAlias for types.elementsndarrayofAtom.elements inAtoms.fmtstrmassesndarrayofAtom.masss inAtoms.symbolsndarrayofAtom.symbols inAtoms.typemapdictofTypeAtom.types.typesndarrayofTypeAtom.types.Methods
add_atomtype(atom)Alias for add_type.add_atomtypes([atoms])Alias for add_types.add_type(atom)Add atom type to typemap.add_types([atoms])Add atom type for each atom in atoms to TypeAtom.typemapdictionary.append(atom)assign_unique_types([from_attr])Assign unique TypeAtom.types to eachTypeAtominTypeAtomsfrom an existing unique atom attribute.clear()copy()count(item)extend(other)filter(condition[, invert])Filter Atomsby condition.filtered(condition[, invert])Return new list of Atomsfiltered by condition.get_atoms([asarray])Return list of Atoms.get_atomtypes([asdict])Alias for get_types.get_types([asdict])Return list of TypeAtomTypeAtom.types.getatomattr(attr)Get ndarrayof 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 Atomvectors.sort([key, reverse])todict()translate(t[, fix_anchor_points])Translate Atomvectors byVectort.