predict#

anri.index.predict(U, B, hkls, geom)[source]#

Predict (eta, omega) of every reflection of some orientations, with both omega solutions.

Parameters:
  • U (Array) – [Nq, 3, 3] orientations (crystal to sample)

  • B (Array) – [3, 3] reciprocal-space B matrix

  • hkls (Array) – [Nh, 3] reflections

  • geom (dict) – Geometry dict with “wavelength”, “k_in_lab”, “wedge” and “chi”

Returns:

eta, omega, valid (jax.Array) – [Nq, 2 Nh] each, prediction j = 2 h + branch; eta and omega in degrees