neutrons / PyRS

Reduction and visualization software for Stress Residual (HB2B)
https://neutrons-pyrs.readthedocs.io/en/latest/index.html
GNU General Public License v3.0
6 stars 7 forks source link

Get index of positions from a `PointList` #685

Closed peterfpeterson closed 4 years ago

peterfpeterson commented 4 years ago

For various functionality, it is necessary to find the index in a pointlist of a position. The new methods should be

PointList.def get_indices(self, other: PointList)

which will return an array that is parallel to the input for indices into self of the supplied other. Any position that isn't found should be filled with -1.