sknano.core.atoms.DipoleAtoms.filter¶
-
DipoleAtoms.
filter
(condition, invert=False)[source]¶ Filter
Atoms
by condition.Changed in version 0.3.11: Filters the list of
Atoms
in-place. Usefiltered
to generate a new filtered list ofAtoms
.Parameters: condition :
str
or boolean arrayBoolean index array having same shape as the initial dimensions of the list of
Atoms
being indexed.invert : bool, optional
If True, the boolean array condition is inverted element-wise.