Detector geometry#

This notebook will eventually tell you how to manipulate detector geometries.

[1]:
import anri
[2]:
help(anri.diffract.k_to_q_lab)
Help on PjitFunction in module anri.diffract._impl.scatter:

k_to_q_lab(k_in: jax.jaxlib._jax.Array, k_out: jax.jaxlib._jax.Array) -> jax.jaxlib._jax.Array
    Convert from scaled normalised $\vec{k_{\text{in}}}$ and $\vec{k_{\text{out}}}$ to scattering vector $\vec{Q}$.

    Parameters
    ----------
    k_in:
        [3] Incoming scaled normalised wave-vector
    k_out:
        [3] Outgoing scaled normalised wave-vector

    Returns
    -------
    q_lab: jax.Array
        [3] Scattering vector

    Notes
    -----
    Just the simple Laue equation:

    .. math::
        \vec{\Delta k} = \vec{k_{\text{out}}} - \vec{k_{\text{in}}} = \vec{G} = \vec{Q}

[3]:
print('hello world again!')
hello world again!
[4]:
dir(anri.diffract)
[4]:
['__all__',
 '__builtins__',
 '__cached__',
 '__doc__',
 '__file__',
 '__loader__',
 '__name__',
 '__package__',
 '__path__',
 '__spec__',
 '_impl',
 'ds_to_tth',
 'k_to_q_lab',
 'omega_solns',
 'peak_lab_to_k_out',
 'q_lab_to_k_out',
 'q_lab_to_tth_eta',
 'q_to_ds',
 'scale_norm_k',
 'tth_eta_to_k_out']