rings#
- anri.crystal.rings(ds, tol=0.0001)[source]#
Group reflections into rings of equal d*.
A ring starts at the smallest d* not yet in a ring and takes every reflection within
tolof it, so rings never chain into one another.- Parameters:
- Returns:
ring (
np.ndarray) – [N] ring index of each reflection, 0 for the lowest d*ring_ds (
np.ndarray) – [Nr] d* of each ring (its first reflection’s)