sknano.core.atoms.EnergyAtoms.filter

EnergyAtoms.filter(condition, invert=False)[source]

Filter Atoms by condition.

Changed in version 0.3.11: Filters the list of Atoms in-place. Use filtered to generate a new filtered list of Atoms.

Parameters:

condition : str or boolean array

Boolean 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.