nmrglue.analysis.analysisbase.neighbors
- nmrglue.analysis.analysisbase.neighbors(pt, shape, structure)[source]
Generate a list of all neighbors to a point.
- Parameters
- pttuple of ints
Index of the point to find neighbors of.
- shapetuple of ints
Shape of the region.
- structurendarray of bools
Structure element that defines connections.
- Returns
- ptslist of int tuples
List of tuples which represent indices for all points neighboring pt. Edges are treated as stopping points.