sknano.core.atoms.XAtoms.getatomattr

XAtoms.getatomattr(attr)[source][source]

Get numpy.ndarray of atom attributes attr.

Parameters:

attr : str

Name of attribute to pass to getattr from each XAtom in XAtoms.

Returns:

numpy.ndarray

Raises:

`ValueError`

if attr not in list of class atomattrs.