allowed#

property ReciprocalLatticeVector.allowed#

Return whether vectors diffract according to diffraction selection rules assuming kinematic scattering theory.

Integer vectors are assumed.

Returns:

allowed – Boolean array.

Return type:

numpy.ndarray

Examples

>>> from diffpy.structure import Atom, Lattice, Structure
>>> from orix.crystal_map import Phase
>>> from diffsims.crystallography import ReciprocalLatticeVector
>>> phase = Phase(
...     "al",
...     space_group=225,
...     structure=Structure(
...         lattice=Lattice(4.04, 4.04, 4.04, 90, 90, 90),
...         atoms=[Atom("Al", [0, 0, 1])],
...     ),
... )
>>> rlv = ReciprocalLatticeVector(
...     phase, hkl=[[1, 0, 0], [2, 0, 0]]
... )
>>> rlv.allowed
array([False,  True])