sknano.core.math.Points.filter¶
-
Points.filter(condition, invert=False)[source][source]¶ Filter
Pointsby condition.Parameters: condition : array_like, bool
Boolean index array having same shape as the initial dimensions of the list of
Pointsbeing indexed.invert : bool, optional
If True, the boolean array condition is inverted element-wise.
Returns: filtered_points :
PointsIf invert is False, return the elements where condition is True.
If invert is True, return the elements where condition (i.e., numpy.invert(condition)) is True.