sknano.core.atoms.PBCAtoms.filter¶
-
PBCAtoms.filter(condition, invert=False)[source]¶ Filter
Atomsby condition.Changed in version 0.3.11: Filters the list of
Atomsin-place. Usefilteredto generate a new filtered list ofAtoms.Parameters: condition :
stror boolean arrayBoolean index array having same shape as the initial dimensions of the list of
Atomsbeing indexed.invert : bool, optional
If True, the boolean array condition is inverted element-wise.