API reference#

Modules

crystal

Crystallography-related utilities and functions.

diffract

Diffraction-related utilities and functions.

geom

Geometry transforms to and from laboratory, detector, and sample frames.

fwd

Forward-projection functions, that use the rest of anri to project peaks onto detector images, and the renderer.

index

Index scanning 3DXRD data: orientation populations per voxel, fitted to the data with the forward model.

io

Reading and writing other programs' formats, e.g. ImageD11 parameters, TensorMaps, sparse and DataSet files.

phantom

Phantom microstructures for testing: grains, misoriented cells and twins, on a reconstruction grid.

utils

Utilities: choosing devices for JAX, and small linear-algebra helpers.