NeighborAtom¶
-
class
sknano.core.atoms.neighbor_atoms.NeighborAtom(*args, neighbors=None, neighbor_map=None, **kwargs)[source] [edit on github][source]¶ Bases:
sknano.core.atoms.atoms.AtomAn
Atomsub-class for neighbor analysis.Parameters: - neighbors (
Atomssub-class) – - neighbor_map (
dict) – - todo (.) – Deprecate/replace
neighborsparameter withneighbor_map
Attributes
CNNeighborAtomcoordination number.NNNearest-neighbor Atoms.NneighborsNumber of neighbors. ZAtomic number \(Z\). elementElement symbol. first_neighborsFirst nearest neighbors. fmtstrFormat string. mAn alias for mass.massAtomic mass \(m_a\) in atomic mass units. neighbor_distancesNeighbor atom distances. neighbor_mapNeighbor atoms. neighborsNeighbor atoms. second_neighborsSecond nearest neighbors symbolElement symbol. third_neighborsThird nearest neighbors Methods
get_nth_nearest_neighbors(n[, exclusive])Get the `n`th set of neighbors. getattr(attr[, default, recursive])Get atom attribute named attr.reset_attrs(**kwargs)Reset atom attributes. rezero(*args, **kwargs)set_nth_nearest_neighbors(n, neighbors)Set nth nearest neighbors todict()Return dictof constructor parameters.update_attrs(**kwargs)Update atom attributes. Attributes Summary
CNNeighborAtomcoordination number.NNNearest-neighbor Atoms.NneighborsNumber of neighbors. first_neighborsFirst nearest neighbors. neighbor_distancesNeighbor atom distances. neighbor_mapNeighbor atoms. neighborsNeighbor atoms. second_neighborsSecond nearest neighbors third_neighborsThird nearest neighbors Methods Summary
get_nth_nearest_neighbors(n[, exclusive])Get the `n`th set of neighbors. set_nth_nearest_neighbors(n, neighbors)Set nth nearest neighbors todict()Return dictof constructor parameters.Attributes Documentation
-
CN¶ NeighborAtomcoordination number.
-
NN¶ Nearest-neighbor
Atoms.
-
Nneighbors¶ Number of neighbors.
-
first_neighbors¶ First nearest neighbors.
-
neighbor_distances¶ Neighbor atom distances.
-
neighbor_map¶ Neighbor atoms.
-
neighbors¶ Neighbor atoms.
-
second_neighbors¶ Second nearest neighbors
-
third_neighbors¶ Third nearest neighbors
Methods Documentation
-
get_nth_nearest_neighbors(n, exclusive=True)[source] [edit on github][source]¶ Get the `n`th set of neighbors.
-
set_nth_nearest_neighbors(n, neighbors)[source] [edit on github][source]¶ Set nth nearest neighbors
-
todict()[source] [edit on github][source]¶ Return
dictof constructor parameters.
- neighbors (